
数据库
dmsdus
这个作者很懒,什么都没留下…
展开
-
oracle 单引号中含有字符串
如: strSql := 'select * from tb where name=''abc'''; abc两边各加两个单引号即可。原创 2016-10-22 15:27:25 · 992 阅读 · 0 评论 -
oracle long类型字段 ora-01704 字符串文字太长
long类型字段a,直接update t set a='xx' where id=1时,如果字符串长度超过4000会报错 解决方法: declare str long := 'xxx'; begin update t a = str where id=1; end;原创 2016-10-28 13:04:04 · 2549 阅读 · 0 评论 -
oracle 游标(显示游标,隐式游标,动态游标)
http://blog.youkuaiyun.com/haiross/article/details/42967213转载 2016-10-21 10:04:33 · 370 阅读 · 0 评论 -
Oracle查询表名为User的表时报ORA-00903:表名无效
原因:oracle内部已使用USER表 解决方法: select * from "数据库名"."USER"原创 2016-10-04 00:38:37 · 13268 阅读 · 0 评论 -
Oracle ORA-14551: 无法在查询中执行 DML 操作
用select ... from dual 调用函数的时候,报ORA-14551: 无法在查询中执行 DML 操作。 解决方法: 函数声明时IS后面加 PRAGMA AUTONOMOUS_TRANSACTION;,操作语句后再加 COMMIT; 关于PRAGMA AUTONOMOUS_TRANSACTION(自治事务)的解释:http://blog.sina.com.cn/s原创 2016-10-04 16:15:11 · 6990 阅读 · 0 评论