怎么插入insert_update,delete_select特殊字符&到oracle表中
如何插入insert_update,delete_select特殊字符&到oracle表中
SQL> insert into t_ch values(&a,9);---要插入特殊字符&到数据库的表中 已创建 1 行。 SQL> commit; 提交完成。 SQL> select * from t_ch; A B ---------------- ---------- 000000000000011 8 000000002222211 8 2 2 999 9 1,第一种方式插入特殊字符& SQL> insert into t_ch values('&'||'a',9); 已创建 1 行。 SQL> select * from t_ch; A B &a 9 2,第二种方式插入特殊字符& SQL> insert into t_ch values(chr(ascii('&')),2); 已创建 1 行。 SQL> commit; 提交完成。 SQL> select * from t_ch; A B ---------- ---------- & 2