在ORACLE里,一般认为''与NULL是等价的,除了一些特别的语法,比如有id is null,但是没有id is '',以及''作为字符类型的特殊性,在decode等函数要求类型匹配的时候,与NULL可能不等价。本篇文章主要说明下''与NULL在SQL优化器中也有很大的区别,如果不了解这个区别,很可能SQL语句的性能,将要陷入灾难境地。【阅读全文】
"V$LOCK" Reference NoteThe information here contains the view description from the Oracle9i documentation along with any additional Support / Historical Notes related to this view.Earlier versions of Oracle may not include all columns.Oracle9i/10g/11g Information...【阅读全文】
oracle中查询表的信息,包括表名,字段名,字段类型,主键,外键唯一性约束信息,索引信息查询SQL如下,希望对大家有所帮助:1、查询出所有的用户表select * from user_tables 可以查询出所有的用户表select owner,table_name from all_tables; 查询所有表,包括其他用户表通过表名过滤需要将字母作如下处理se...【阅读全文】
使用ssh Secure file连接服务器上Oracle的时候。在SqlPlus工具上退格、上翻和下翻都会出现SQL> ^[[A的乱码解决办法:安装rlwrap下载地址:http://utopia.knoware.nl/%7Ehlub/uck/rlwrap/# tar zxvf rlwrap-0.37.tar.gz# cd rlwrap-0.37/# ./configure# make# make install首先确保Linux操作系统已经安装read...【阅读全文】