SQL中的escape 将通配符 变成普通符号
摘要:允许在字符串中搜索通配符而不是将其作为通配符使用。escape_character 是放在通配符前表示此特殊用途的字符。 SELECT * FROM finances WHERE description LIKE 'gs_' ESCAPE 's' (‘s’ 此处字符随意) GO 意思就是: 比如,我
阅读全文
posted @
2018-01-24 15:23
一个帅哥9527
阅读(292)
推荐(0)
将逗号分割的列,变成多列
摘要:SELECT substring_index(substring_index(t.delid,',', b.help_topic_id + 1), ',', -1) FROM (SELECT su.* FROM sys_user su ) t join mysql.help_topic b ON b
阅读全文
posted @
2017-11-04 16:03
一个帅哥9527
阅读(363)
推荐(0)