㈠ 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 如何过滤掉系统表
如图(我为什么要回答这么无聊的问题。。。。)