ORACLE中Insert时总是出现让enter value for....
来源:互联网 发布:bcm20702a0 mac 编辑:程序博客网 时间:2024/06/06 01:01
ORACLE在执行insert语句时,总是出现让enter value for....
解决:在执行insrt语句前,在SQL PLUS中,执行SQL> set define off
原因:是因为在insert时,值中有转义字符,插入数据前,需关闭转义字符的定义。
SQLPLUS下处理&字符的方法还有如下几个:
(1) 关闭对于替换字符的定义
SQL> set define off
SQL>insert into t values('&2');
1 row created.
SQL> commit;
Commit complete.
(2) 将替换字符的定义设置为其他不用的字符
SQL>set define %
SQL> insert into t values('&3');
1 row created.
SQL> commit;
Commit complete.
(3) 设定字符转义
SQL> set escape on
SQL> show escape
escape "\" (hex 5c)
SQL> insert into t values('\&4');
1 row created.
SQL>commit;
Commit complete.
SQL> select * from t;
NAME
--------------------
&
&!@#$%^*()_+
&1
&2
&3
&4
6 rows selected.
0 0
- ORACLE中Insert时总是出现让enter value for....
- Oracle中对超长内容的处理,避免出现can bind a LONG value only for insert into a LONG column错误
- Oracle中对超长内容的处理,避免出现can bind a LONG value only for insert into a LONG column错误
- 调试时出现please enter the path for 对话框
- 调试时出现please enter the path for 对话框
- 调试时出现please enter the path for 对话框
- oracle sql developer怎么打不开呢,出现enter the full pathname for java.exe
- ORA-01461: can bind a LONG value only for insert into a LONG column oracle
- 用insert 插入一个带&的字符串时总是让输入值
- Spring+Hibernate中PO主键带有GeneratedValue注解时出现No value specified for parameter 7
- mybatis 中insert语句报如下错误: Incorrect integer value: '' for column 'pic_len' at row 1
- 关于出现数据库错误ORA-01461: can bind a LONG value only for insert into a LONG column
- oracle insert into 多个value
- windows下 安装后的 Oracle SQL Developer 不能用,出现一个对话框提示:Enter the full pathname for java
- insert into 语句总是出现 未指定错误
- jboss、Oracle 10g报错:can bind a LONG value only for insert into a LONG column
- 程序向oracle插入数据错误:can bind a LONG value only for insert into a LONG column
- JSP中使用JavaBean时出现The value for the useBean class attribute XXX is invalid错误。
- 快速排序算法
- javascript 继承
- [FMS]adobe fms边缘服务器配置介绍
- Setting the parent of a transform which resides in a prefab is disabled to prevent data corruption
- 如何使用vsphere client 克隆虚拟机
- ORACLE中Insert时总是出现让enter value for....
- Android Studio 视频教程分享
- Android群英传之Android性能优化
- [FMS]adobe下FMS修改tomcat默认端口
- 全面对战LILO 和 GRUB
- js里面的原型和原型链
- 构架对项目复杂度的影响
- 第三方--极光推送
- Python 中的全局变量