随笔分类 - Oracle学习
Oracle学习记录
摘要:1.安装oracle 客户端的bin文件夹权限过小,需要手工设置此权限点。2.需要安装oracle client版本
阅读全文
posted @ 2014-10-17 15:59
smart-liu
摘要:select s_cid,max(case when num = 1 then zhangwuny else null end) as 账务年月1,max(case when num = 1 then i_xiaofeil else null end) as 消费量1,max(case when num = 1 then i_bencicm else null end) as 本次抄吗1,max(case when num = 1 then d_bencicbrq else null end) as 本次抄表日期1,max(case when num = 2 then zhangwun...
阅读全文
摘要:intersect语句为交集、minus为前者减去后者union、union all 时 order by 语句必须位于最后一个select后,且order by 语句所指定的第一个查询语句所指列如果有别名,则必须使用alias别名列。all、any(some)语句all相当于对比值大于后者查询的最大值maxany相当于对比值大于后者查询的最小值mincheck contraint约束:对比必须返回为bool值,且对比不能引用其他表或行,且不能与诸如sysdate、userid、oraenv等函数进行比较。view视图可以进行dml操作限制(如果在创建的view结尾处添加with check
阅读全文
摘要:查看分区SQL> select partition_name, High_value from user_tab_partitions where table_name=‘XXXX’;查看分区基于那个字段select * from USER_PART_KEY_COLUMNS ;添加表分区alter table xxxx add partition P200901 values less than (TO_DATE(' 2009-01-31 00:00:00', 'SYYYY-MM-DD HH24:MI:SS', 'NLS_CALENDAR=GREG
阅读全文

浙公网安备 33010602011771号