我有兩個疑問:無法解析在聯盟的排序規則衝突選擇
首先不起作用:
select hotels.TargetCode as TargetCode from hotels
union all
select DuplicatedObjects.duplicatetargetCode as TargetCode
from DuplicatedObjects where DuplicatedObjects.objectType=4
,因爲我得到錯誤:
Cannot resolve collation conflict for column 1 in SELECT statement.
第二部作品:
select hotels.Code from hotels where hotels.targetcode is not null
union all
select DuplicatedObjects.duplicatetargetCode as Code
from DuplicatedObjects where DuplicatedObjects.objectType=4
結構:
Hotels.Code -PK nvarchar(40)
Hotels.TargetCode - nvarchar(100)
DuplicatedObjects.duplicatetargetCode PK nvarchar(100)
C#在這裏有什麼相關性? – 2010-04-20 08:39:08
@John Skeet我已經糾正了它 – user278618 2010-04-20 08:43:43