oracle資料庫的分區表
發布時間: 2023-01-06 15:19:07
㈠ Oracle資料庫查詢分區表
查分區表user_tab_partitions,或者user_segments,或者user_objects都行。
個人感覺user_tab_partitions比較好。
至於6個月之前,可以用sysdate和add_months來做,然後再to_char截取,就行
㈡ oracle怎樣查詢哪些表分區
如果查詢當前用戶下得分區表:
select * from user_tables where partitioned='YES'
如果要查詢整個資料庫中的分區表:
select * from dba_tables where partitioned='YES'
如果要查詢某個用戶下得分區表:
select * from dba_tables where partitioned='YES' and owner='ABCDEFG'
其中ABCDEFG為用戶名
熱點內容