How to insert into a table that specifies a DEFAULT value for every column?

前端 未结 1 1304
醉话见心
醉话见心 2020-12-19 01:17

I have a table where all columns are auto-populated whenever an insertion happens:

CREATE TABLE …
(
    ItemID      INT       NOT NULL IDENTITY(…),
    DateC         


        
相关标签:
1条回答
  • 2020-12-19 02:13

    Use the DEFAULT VALUES option:

    INSERT INTO IndentitySpecification
    DEFAULT VALUES;
    
    0 讨论(0)
提交回复
热议问题