functions

functions #

convert #

不同字符集字段比较:

sql
col1 = convert(col2 USING utf8mb4)

find_in_set #

Usage:

text
find_in_set(str1, str2)

Example:

text
find_in_set('aa', 'aa,bb,cc')    return 1
find_in_set('bb', 'aa,bb,cc')    return 2
find_in_set('aa', 'bb,cc')    return 0
2024年12月9日