728x90
UPDATE MATBUY_LIST SET
ReceiptDate = CASE @pStatusCHK
When 'S' Then @pOrderDate
ELSE ReceiptDate
End,
OrderDate = @pOrderDate ,
Mention1 = @pMention1 ,
StatusCHK = @pStatusCHK ,
SysUser = @pRegUser ,
SysDate = GETDATE()
WHERE BUYNO = @pBUYNO 

[출처] UPDATE 문 CASE|작성자 윈마스터

+ Recent posts