When I attempt to use query I get the following error:
Operand type clash: uniqueidentifier is incompatible with int
Query:
insert into [D:\BACKUP1\ADBASE\APP_DATA\SCIENCECOM.MDF].dbo.Surfaces
(Height, Width, Space, Id)
select
'0' as Name,
'0' as Width,
'0' as Space,
[D:\BACKUP1\ADBASE\APP_DATA\SCIENCECOM.MDF].dbo.Sides.Id
from [D:\BACKUP1\ADBASE\APP_DATA\SCIENCECOM.MDF].dbo.Sides
Can someone tell me what I've done wrong?
如果您的Id列被声明为uniqueidentifier
,则它可能会自动生成,因此,如果我正确理解了您的问题,则无法通过查询手动插入...。
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.