oracle中如何插入包含单个撇号的数据
nsert into table values('fifth product's name',25,'05-MAY-07');
该语句会报错:ORA-01756:quoted string not properly terminated
想插入包含单个撇号的数据,必须进行以下两个操作:在INSERT前执行
set scan off命令,并且在想插入单个撇号的文本串位置插入两个撇号。
命令如下:
set scan off www.2cto.com
insert into table values('Fifth Product''s Name',25,'05-MAY-07');
set scan on
作者 lee576