일단모아/마구마구
select update 방식
반생자
2008. 8. 27. 08:44
BEGIN TRAN
UPDATE A
SET A.SALE_PRSN = '12'
-- SELECT SALE_PRSN,order_num,*
FROM sdft A inner join sdf B on a.comp_code = b.comp_code
and a.div_code = b.div_code
and a.bill_num = b.bill_num
WHERE 1 = 1
AND b.ORDER_NUM IN (
'130218'
)
UPDATE A
SET A.SALE_PRSN = '12'
-- SELECT SALE_PRSN,order_num,*
FROM sdft A inner join sdf B on a.comp_code = b.comp_code
and a.div_code = b.div_code
and a.bill_num = b.bill_num
WHERE 1 = 1
AND b.ORDER_NUM IN (
'130218'
)