简体   繁体   English

操作数类型冲突:uniqueidentifier与查询中的int不兼容

[英]Operand type clash: uniqueidentifier is incompatible with int in query

When I attempt to use query I get the following error: 当我尝试使用查询时,出现以下错误:

Operand type clash: uniqueidentifier is incompatible with int 操作数类型冲突:uniqueidentifier与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 ,则它可能会自动生成,因此,如果我正确理解了您的问题,则无法通过查询手动插入...。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 操作数类型冲突:uniqueidentifier与int不兼容 - Operand type clash: uniqueidentifier is incompatible with int 操作数类型冲突:uniqueidentifier 与 float 不兼容 - Operand type clash: uniqueidentifier is incompatible with float 尝试在参数中添加“ ALL”选项时,操作数类型冲突uniqueidentifier与int不兼容 - operand type clash uniqueidentifier is incompatible with int when trying to add 'ALL' option to my parameter 存储过程-操作数类型冲突:smallint与uniqueidentifier不兼容 - Stored procedure - Operand type clash: smallint is incompatible with uniqueidentifier 操作数类型冲突:日期与int不兼容? - Operand type clash: date is incompatible with int? 操作数类型冲突:int与utblProgramAllotment [用户定义的表类型]不兼容 - operand type clash: int is incompatible with utblProgramAllotment[user defined table type] 使用日期“'操作数类型冲突:日期与int不兼容'用SQL查询填充Datagrid - Fill Datagrid with Sql Query using Date " 'Operand type clash: date is incompatible with int'' 如何修复错误 - 操作数类型冲突:日期与 int 不兼容 - How to fix the error - Operand type clash: date is incompatible with int 操作数类型clash int与sql server中的日期不兼容 - operand type clash int is incompatible with date in sql server SQL 服务器“操作数类型冲突:int 与日期不兼容”错误 - SQL Server 'Operand type clash: int is incompatible with date' error
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM