Sql Server에서 열의 기본값을 DateTime.Now
으로 설정하는 방법이 있습니까?현재 날짜를 열의 기본값으로 사용하십시오.
예 :
table Event
Id int (auto-increment) not null
Description nvarchar(50) not null
Date datetime not null
라인 :
Insert into Event(Description) values('teste');
현재 날짜되어야 행과 날짜 값을 삽입한다.
(GETDATE())를 설정 너무 - HTTP ://blog.sqlauthority.com/2013/05/10/sql-server-adding-column-defaulting-to-current-datetime-in-table/ – Steam