select * from t_order_no

 

-- t_order_no

1

 

 

update t_order_no
set t_order_no=2
output inserted.t_order_no new
     , deleted.t_order_no before

 

-- new     old

         2       1

 

 

'MSSQL' 카테고리의 다른 글

로그파일 축소  (0) 2012.07.22
with(updlock) 케이스별 테스트  (0) 2012.01.26
MSSQL identity 테스트  (0) 2012.01.20
(펌) MSSQL Identity 자동 증가함수  (0) 2012.01.20
(펌) T_SQL 같은 그룹의 데이터를 붙여서 출력하기  (0) 2011.12.27

+ Recent posts