본문 바로가기
Programming/DataBase

[Mssql] insert 한 seq 값 select 해오기

by 막이 2015. 4. 28.

set nocount on INSERT INTO AD_SCHEDULE (title, description, start_date, end_date, display_color , reg_date) values ( 'zzz','','2015-04-09' ,'2015-04-09' ,'' , getdate() )select seq=@@identity set nocount off