EXPORT_SET
Return a string representation of bits. This function generates a string based on the bits set in a number, using specified 'on' and 'off' strings.
Syntax
EXPORT_SET(bits, on, off[, separator[, number_of_bits]])Description
Examples
SELECT EXPORT_SET(5,'Y','N',',',4);
+-----------------------------+
| EXPORT_SET(5,'Y','N',',',4) |
+-----------------------------+
| Y,N,Y,N |
+-----------------------------+
SELECT EXPORT_SET(6,'1','0',',',10);
+------------------------------+
| EXPORT_SET(6,'1','0',',',10) |
+------------------------------+
| 0,1,1,0,0,0,0,0,0,0 |
+------------------------------+Last updated
Was this helpful?

