SQL 转换符
1.插入特殊符号
insert table testTB(name) values('li''ming');
在SQL中''就相当于一个'
2.查询SQL语句转义符.
select * from testTB where name like 'li\''%' escapse'\'
其中escapse对'\'进行了转义
SQL 转换符
1.插入特殊符号
insert table testTB(name) values('li''ming');
在SQL中''就相当于一个'
2.查询SQL语句转义符.
select * from testTB where name like 'li\''%' escapse'\'
其中escapse对'\'进行了转义
转载于:https://www.cnblogs.com/Sweetpig/archive/2008/10/07/1305385.html