SQL> create table tempt( 2 id int, 3 name varchar(20) 4 ); SQL> insert into tempt values(1,'hello'); SQL> insert into tempt values(1,'--'); SQL> COMMIT;create table tempt( id int, name varchar(20) );SQL> select * from tempt; ID NAME ---------- -------------------- 1 hello 1 --
我用的是PL/SQL,里面被注释掉了
自己先用你的编辑器里的替换功能,把-换成chr()
实在不行,就用脚本执行。 执行的前面,加上一句 define off
select '''--''' from dual ; select chr(39)||'--'||chr(39) from dual1 '--'
SQL> create table tempt(
2 id int,
3 name varchar(20)
4 );
SQL> insert into tempt values(1,'hello');
SQL> insert into tempt values(1,'--');
SQL> COMMIT;create table tempt(
id int,
name varchar(20)
);SQL> select * from tempt; ID NAME
---------- --------------------
1 hello
1 --
执行的前面,加上一句 define off
select chr(39)||'--'||chr(39) from dual1 '--'