SQL "Thai_CI_AS" 和 "SQL_Latin1_General_CP1_CI_AS" 之间的查询冲突
SQL query conflict between "Thai_CI_AS" and "SQL_Latin1_General_CP1_CI_AS"
你好,我可以知道这个查询有什么问题吗
SELECT [no]
-- into #mytemp
FROM [pcb_comp]
where no in (SELECT [no] FROM [Data_Query].[dbo].[query]
where [no] NOT IN (select no from [IPTS2].[dbo].[abc]))
and location = 'PCB'
order by no
如果排序规则与 Location 列发生冲突而不是使用下面的方法:
SELECT [no]
-- into #mytemp
FROM [pcb_comp]
where no in (SELECT [no] FROM [Data_Query].[dbo].[query]
where [no] NOT IN (select no from [IPTS2].[dbo].[abc]))
and location COLLATE DATABASE_DEFAULT = 'PCB' COLLATE DATABASE_DEFAULT
order by no
如果上述方法不起作用,同样适用于您的 'in' 过滤器。
你好,我可以知道这个查询有什么问题吗
SELECT [no]
-- into #mytemp
FROM [pcb_comp]
where no in (SELECT [no] FROM [Data_Query].[dbo].[query]
where [no] NOT IN (select no from [IPTS2].[dbo].[abc]))
and location = 'PCB'
order by no
如果排序规则与 Location 列发生冲突而不是使用下面的方法:
SELECT [no]
-- into #mytemp
FROM [pcb_comp]
where no in (SELECT [no] FROM [Data_Query].[dbo].[query]
where [no] NOT IN (select no from [IPTS2].[dbo].[abc]))
and location COLLATE DATABASE_DEFAULT = 'PCB' COLLATE DATABASE_DEFAULT
order by no
如果上述方法不起作用,同样适用于您的 'in' 过滤器。