This article is a mirror article of machine translation, please click here to jump to the original article.

View: 11361|Reply: 0

[Solved] The identification column in the table 'Area' can only be used if a list of columns is used and IDENTITY_INSERT is ON

[Copy link]
Posted on 2/9/2015 11:12:05 AM | | |
The original code was:

[mw_shl_code=sql,true]insert Group1
select * from(
select * Group2
union
select * from Group3
union
select * from Group4
)t[/mw_shl_code]


The code now is:

[mw_shl_code=sql,true]insert  Group1
select * from(
select QQNum,Nick,Age,Gender,Auth,QunNum from Group2
union
select QQNum,Nick,Age,Gender,Auth,QunNum from Group3
union
select QQNum,Nick,Age,Gender,Auth,QunNum from Group4
)t[/mw_shl_code]

Successfully solved!!




Previous:How to restore an MDF database file without a .ldf log file
Next:XML Beginner Syntax
Disclaimer:
All software, programming materials or articles published by Code Farmer Network are only for learning and research purposes; The above content shall not be used for commercial or illegal purposes, otherwise, users shall bear all consequences. The information on this site comes from the Internet, and copyright disputes have nothing to do with this site. You must completely delete the above content from your computer within 24 hours of downloading. If you like the program, please support genuine software, purchase registration, and get better genuine services. If there is any infringement, please contact us by email.

Mail To:help@itsvse.com