What happens to the output of the MySQL EXPORT_SET() function if I skip the fourth and fifth parameters, delimiter and number of bits?

WBOY
Release: 2023-09-07 09:21:02
forward
467 people have browsed it

如果我跳过第四个和第五个参数,即分隔符和位数,MySQL EXPORT_SET() 函数的输出会发生什么?

We know that the default value (i.e. number of bits) of the fifth parameter is 64, so if we don't specify any value on the fifth parameter, MySQL will check the bits up to 64 and Generate results. However, when the fourth parameter (i.e. delimiter) is skipped, MySQL will use a comma (,) as the delimiter when displaying the output.

Example

mysql> SELECT EXPORT_SET(8,'Y','N')\G *************************** 1. row *************************** EXPORT_SET(8,'Y','N'): N,N,N,Y,N,N,N,N,N,N,N,N,N,N,N,N,N,N,N,N,N,N,N,N,N,N,N,N,N,N,N,N,N,N,N,N,N,N,N,N,N,N,N,N,N,N,N,N,N,N,N,N,N,N,N,N,N,N,N,N,N,N,N,N 1 row in set (0.00 sec)
Copy after login

The above is the detailed content of What happens to the output of the MySQL EXPORT_SET() function if I skip the fourth and fifth parameters, delimiter and number of bits?. For more information, please follow other related articles on the PHP Chinese website!

source:tutorialspoint.com
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!