postgresql like 中的转义

mac2022-06-30  24

select * from tb_org where char_length(xdm)>8 and xdm not like '%*_%'  ESCAPE '*'

ESCAPE 后面的 * 是转义字符,目的是将  '%*_%' 中的 下划线 “_” 转义为普通字符

 

转载于:https://www.cnblogs.com/SeNaiTes/p/11344583.html

最新回复(0)