- 区分表的大小写,当然 都是大写。
- 删除DEF$_AQCALL和DEF$_AQERROR 表的时候 使用如下命令:EXECUTEDBMS_AQADM.DROP_QUEUE_TABLE('DEF$_AQERROR',TRUE)。
- 将Oracle一张表的一列数据插入到另一张表的其中一列:insert into table2(字段y)( select 字段x from 表1);表示将表1中的字段x插入到表2中的字段Y中,其余字段自动为null;
- 查询两天之间的天数:select floor(sysdate - to_date('20020405','yyyymmdd')) from dual; to_date这个函数将字符串转换为了日期格式的数据加以运算;
- 查询两天之间的数据:insert into 表1 select * from 表2 where to_date(ENDDATE,'yyyy-mm-dd') between to_date('20140414','yyyy-mm-dd') and to_date('20140420','yyyy-mm-dd');
- ORA-00972 表名,变量名字符不能超过30个字符,卧槽!
- 查询一个表的索引:select * from user_indexes where TABLE_NAME = '表名';
- truncate一个表之后 在用户下面建的索引 存在于索引表中;
- 创建一个用户:create user 用户名 identified by 密码,如:create user HEHE identified by 123456;
Oracle的一些注意事项(作死更新)
最新推荐文章于 2021-11-11 17:01:14 发布