1810-zx

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

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

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

分类:

技术点:

相关文章: