Can I write an insert-in statement for a single column table?

Here's a warning ...

If you have a table in which there is one column, and this column is a column identitywith OFFidentity_insert disabled , can you still write the T-SQL insert statement for this table?

+3
source share
1 answer

sure that

use insert TableName default values

Example

create table Test (id int identity not null)


insert Test default values

select * from Test
+6
source

Source: https://habr.com/ru/post/1736208/


All Articles