0

我想将 concat 值更新为单列。请帮我更新这个。

update tbl_data1 
   set FLD_REMARKS= 
       (select i.fld_id||':'||i.fld_calc_id||':'||0||':'||0 
          from tbl_cust_order p, tbl_cust_bill i 
         where i.fld_item_id=p.fld_id 
           and p.fld_item_id=110 
           and rownum =1 
         order by p.fld_id desc)
 where fld_id=243078
4

1 回答 1

0

你没有说问题是什么,但也许这会有所帮助:

update tbl_data1 
   set FLD_REMARKS= 
     (select TheFld FROM (
       (select i.fld_id||':'||i.fld_calc_id||':'||0||':'||0 TheFld
             , ROW_NUMBER() OVER (ORDER BY p.fld_id desc) rn 
          from tbl_cust_order p, tbl_cust_bill i 
         where i.fld_item_id=p.fld_id 
           and p.fld_item_id=110)
         WHERE rn = 1)
 where fld_id=243078
于 2013-07-27T05:11:15.630 回答