An explicit value for the identity column in table 'users' can only be specified when a column list

sql database

Error when using the insert into table select union all

 

the reason:

When inserted into the table that there is provided a self-growing field  

 

solve:

1.

Setting allows data from the field into the growth

set IDENTITY_INSERT dbo.SysBillStatusFuncItem ON

After insertion of the element, set IDENTITY_INSERT dbo.SysBillStatusFuncItem OFF remember

 

2.

To insert data fields from growth assignment

seq here is self-growth fields

 

Guess you like

Origin www.cnblogs.com/shiyuzuxia/p/11546717.html