SELECT GROUP_CONCAT(column_name) FROM information_schema.columns WHERE table_schema = (SELECT database()) AND table_name=‘表名‘;
SELECT REPLACE(UUID(),‘-‘,‘‘)
locate("1", "234313") >0;
length(order_num)-length(replace(order_num,‘8‘,‘‘))
TRIM(BOTH ‘x‘ FROM ‘xxxbarxxx‘)
UPDATE `user_info` ui RIGHT JOIN sys_user u ON u.user_name = ui.user_name
SET ui.id = u.id
FORMAT(100.3465,2)
IF(判断条件, 真时, 假时)
IFNULL(num, 0);
SELECT * FROM {{表名}} where 1=1
and HEX(列名) REGEXP "e[4-9][0-9a-f]{4}"
-- and {{列名}} REGEXP "[^\x00-\xff]"
原文:https://www.cnblogs.com/weiyunmis/p/14680422.html