ITPUB论坛 » IBM数据库产品 » oracle语句换成DB2 如何写


2008-7-4 15:57 zxqsharp
oracle语句换成DB2 如何写

update tpshra6 set rep_mat_flag = '1'
where  sample_lot_no = :tpshra6.sample_lot_no
and rownum =1;
请教这句语句如何修改成DB2的

2008-7-4 16:36 myfriend2010
类似:
  update(select PUBID,REGARD,POPEDOM,row_number()over(partition by PUBID) rn from DB2ADMIN.PUBBZ
  )
  set REGARD =1
  where rn =1;

2008-7-4 16:51 acme1921209
顶 myfriend2010 :)

2008-7-5 13:39 Ryan-liumin
来学习的  顺便帮顶

页: [1]


Powered by ITPUB论坛