易截截图软件、单文件、免安装、纯绿色、仅160KB

oracle 找出两表之间重复数据

select * from ( select tb1.rollid from (select r.rollid as rollid from zh1_rool r where r.date_p >=to_date('2009-11-26 23:59:59','yyyy-mm-dd hh24:mi:ss') ) tb1
  where tb1.rowid !=
  (
select max(tb2.rown) from (select t.rowid as rown,t.lot_number as rollid
from inv.mtl_onhand_quantities_detail t
left join mtl_system_items_b mi
on t.inventory_item_id = mi.inventory_item_id
where mi.segment1 like '101%' and mi.organization_id = 102) tb2
where tb2.rollid=tb1.rollid
  ) )tb3


相关文档:

oracle constraints(2)

oracle 约束的状态
  oracle在创建约束后默认状态是enabled VALIDATED
SQL> create table T2
2 (
3 VID NUMBER,
4 VNAME VARCHAR2(10) not null,
5 VSEX VARCHAR2(10) not null
6 )
7 /

Table created

SQL> alter table t2 add constraints PK_T primary key (vid); ......

oracle constraints(3)

oracle constraints 应用
oracle constraints可以设置为立即检查或者当时事务提交时检查。
    可以在创建约束的时候指定是deferrable。然后通过set constraints xxx set deferred或者immediate,也可以在seesion级别设定所有约束为deferred或者immediate(alter seesion set constraints deferred/immediat ......

Oracle中实现大表数据快速转移

如果你要把Oracle里的大量数据(80M以上)转移到另外的用户,另外的表空间里。可以用下面介绍的快速转移数据的方法。
一、建新表的方式
create table target_tablename tablespace
target_tablespace_name nologging
pctfree 10 pctused 60
storage(initial 5M next 5M minextents 1
maxextents unlimited pctincr ......

oracle复习(二) 之Oracle实例的管理

      今天复习第三章,本来算起来应该是第二章的,但是第二章的内容是介绍数据库的管理工具,而对于我们而言,这些相对来说没有多大的必要,所以,现在步入复习Oracle实例的管理。这章的内容包括初始化参数文件的维护和管理,以各种不同的方式启动和概念比数据库Oracle Instance,以及对Oracle I ......

Oracle数据库还真不好整

从在Linux上安装Oracle到投入使用才几天,碰到的问题就成百上千的。在使用客户端连接远程Oracle数据库服务器时,出现了listener refused the connection with the following error ora-12519 Listener refused the connection with the following error:ORA-12519, TNS:no appropriate service handler foundThe Connection ......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号