How to insert N rows of default values into a table

前端 未结 4 1100
闹比i
闹比i 2021-01-04 19:02

I have a table containing an identity column as well as a column representing the creation date:

CREATE TABLE dbo.OrderStatus
(
    OrderStatusId int IDENTIT         


        
4条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2021-01-04 19:41

    Set up a trigger when a new row is CREATEd:

    https://msdn.microsoft.com/en-us/library/ms189799.aspx

提交回复
热议问题