模糊查询 匹配%

insert into student values('S001',20,'曾%天','男','190802A','122','hhhh');

-- 查询名字中包含%的学生信息    在%前加个转义字符\  使用escape指明 \

select * from student where name like '%\%%' escape '\';

猜你喜欢

转载自www.cnblogs.com/1810-zx/p/12102935.html
今日推荐