Oracle 批量更新时 Update 语句需要注意的地方
Oracle Update时,如果需要同时更新多个字段时,一定要严格谨慎!例如:Update table1 a set (c1,c2,c3)=(select c1,c2,c3 from table2 b where a.id=b.id)where exists (select 1 from table2 where id=a.id);要加上后面的where 条件,以保证数据能够完全匹配,从而确保数据能够正确、顺利的更新完成!...
oracle 删除索引报错"ORA-01418:sepecified index does not exist"
一般情况下对索引的操作就是 alter index index_name xxx。但也经常会碰到 ORA-01418:sepecified index does not exist 的异常提示。经查询得到:ORACLE是区分大小写的,除非你命名时全部大写或者小写,否则必须使用双引号将你的索引名包住,大小写写正确。以后还是得要多注意细节! ...
ORA-01461 问题的解决
开发过程中,经常会用到oracle的参数来进行数据库的操作,有时候为了图方便,在声明OracleParameter 时,会经常使用 OracleParameter(string name, object value) 这个构造方法,不确定类型而直接传值。一般情况下都不会有问题,但偶尔还是会碰到 ORA-01461: can bind a LONG value only for insert into a L...