Output of MySQL EXPORT_SET Function When Skipping Arguments



As we know that the default value of the fifth argument i.e. number of bits is 64, hence if we will not specify any value on fifth argument them MySQL will check the bits up to 64 bits and produce the result. Whereas, on skipping the fourth argument i.e. separator, MySQL will use a comma (,) as a separator while 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)
Updated on: 2020-06-20T09:00:18+05:30

77 Views

Kickstart Your Career

Get certified by completing the course

Get Started
Advertisements