首页  

mysql 单引号转义     所属分类 mysql 浏览量 890
create table table01(id int primary key,info varchar(128));

test.sql

update table01 set info='This is dyyx's cat' where id=1;
 
mysql> source test.sql;
ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 's cat' where id=1' at line 1
 
update table01 set info='This is dyyx\'s cat' where id=1;
 
' 单引号 转义  \'

上一篇     下一篇
快慢指针的妙用

MySQLTEXT类型最大长度

高效会议六大原则

Runnable Callable Future FutureTask

老程序员的几点建议

为何不建议使用Optional