17,380
社区成员
发帖
与我相关
我的任务
分享SQL> set define off
SQL> insert into testtt values('&1233');
1 row inserted
SQL> select * from testtt;
A
----------
&1233
SQL> SQL> create table testtt
2 (a varchar2(10));
Table created
SQL> insert into testtt
2 select chr(38)||'123' from dual
3 ;
1 row inserted
SQL> select * from testtt;
A
----------
&123
SQL> --用chr()这个试试
SQL> insert into emp(empno,ename) values(1111,chr(38)||'xx');
已创建 1 行。
SQL> select * from emp where empno=1111;
EMPNO ENAME JOB MGR HIREDATE SAL COMM DEPTNO
---------- ---------- --------- ---------- -------------- ---------- ---------- ----------
1111 &xx