LIKE , LEFT ,RIGHT , MID
作者:互联网
1.普通用法 where name like '%d'; where name like '_at%'; 2.不匹配时返回真 NOT LIKE WHEE name NOT LIKE ''; 3.不能判断null SELECT NULL LIKE '%' , NULL NOT LIKE '%' 返回都为null 4.LEFT(str,3) RIGHT(str,2) MID(str,2) LEFT('ABCDEFG',2); AB RIGHT('ABCDEFG',2); FG MID('ABCDEFG',2); BCDEFG
搜索
复制
标签:RIGHT,name,LIKE,MID,ABCDEFG,LEFT 来源: https://www.cnblogs.com/pangkai/p/16277247.html