📜  MySQL字符串MAKE_SET()函数

📅  最后修改于: 2020-11-21 08:56:08             🧑  作者: Mango

MySQL MAKE_SET()函数

MAKE_SET(bits,str1,str2,…)是MySQL的Sring函数。此方法返回给定位的设置值。

句法

select make_set(bits, str1, str2,...); 

例子1

Select make_set(1, 'apple','mango','grapes');

输出:

例子2

Select make_set(1|3, 'apple','mango','grapes');

输出:

例子3

Select make_set(1|4, 'apple','mango','grapes');

输出:

例子4

Select make_set(4, 'apple','mango','grapes');

输出: