㈠ oracle數據褲表,怎麼才能過濾掉我不想要的數據啊
你上面來語句的意思似乎源想查 表中數據項2重復數據中又都滿足數據項1 和數據項2的記錄。
不太明白你要那些數據。到底是保留這些重復數據中滿足條件1和2的,還是不保留。
如:select * from a where 1 and 2 in(select 2 from b group by 2 having count(*)>1)
我寫的語句的意思是:在b表中2欄位重復數據的2欄位和a表中1條件 同時滿足的a表中的記錄。
㈡ oracle資料庫導出的時候,可以過濾掉某隻表裡面的數據么
用exp的方式導來出的話可以先導源出表的結構和數據,導出時使用參數Tables=Table1,table2 owner=hs ,指定導出的表,把不需要的表剔除,然後再用exp導出用戶下所有的結構,SP,Function等.
用expdp的方式導出的話使用參數exclude,寫法應該是這樣,exclude=TABLE:"='Table1'",具體可以查下幫助
另外針對沒有分配segment的表,即大多是空表,可能無法導出.即使改了參數: deferred_segment_creation 但是因為開始沒有分配segment,所以改了參數後,還是沒有分到,也沒辦法導出,除非改了參數後重建下表.否則表結構就需要用腳本自行建置
㈢ oracle sql developer過濾表,我想找到特定的表
oracle sql developer過濾表,我想找到特定的表
比如
select table_name from all_tables where table_name like 'TB_USER_QUESTIONNAIRE_%' except '_';
except可能寫錯了,好久沒用了記不清楚了。
如果這些表就是當前用戶的,那麼查user_tables也可以的。
㈣ oracle資料庫的過濾問題:如何過濾兩個表中相同的部分數據。比如說A表與B表都有記錄
試試下面的SQL語句是否符合你的需求: --A:
select XX_id
from tiantiantian
where sum_date=20110420
and XX_status < 30
and XX_type in (1009, 1008, 1003, 1011)
and XX_date > to_date(20110420, 'yyyymmdd')
and not exists(
select xx_id from dididi
where sum_date=20110420
and XX_status < 30
and XX_type in (1009, 1008, 1003, 1011)
and XX_date > to_date(20110420, 'yyyymmdd'));
--B:
select XX_id
from dididi
where sum_date=20110420
and XX_status < 30
and XX_type in (2001)
and XX_date > to_date(20110420, 'yyyymmdd')
and not exists(
select xx_id from tiantiantian
where sum_date=20110420
and XX_status < 30
and XX_type in (2001)
and XX_date > to_date(20110420, 'yyyymmdd'));
㈤ oracle sql developer4.0 如何過濾系統表
不知道你說的過濾系統表什麼意思,每登陸一個用戶會在table中看到屬於這個用戶的表以及其他一些對象,你說你看到了系統表那說明你用sys用戶登錄的,換其他用戶登錄就可以了
㈥ oracle導出資料庫,過濾某個表(命令)
好像只有針對哪些表可以導出
例如下面將TableA,TableB二個表導出exp system/sa@orcl file=E:/sample.dmp tables=(TableA,TableB)
如果你真想A表不導出,我建議你先把A表導出來,或者是備份,然後把A表刪除,然後全表導出資料庫,也能達到你的目的。
希望能夠幫到你。
㈦ oracle sql developer 如何過濾掉系統表
如圖(我為什麼要回答這么無聊的問題。。。。)