回 帖 发 新 帖 刷新版面

主题:关于SELECT UNION语句

请问,各位这句SQL语句哪里有问题.
SELECT email, 'N' AS member FROM Order_Epose UNION (SELECT email, 'Y' AS member FROM Member_NET)

运行时,出现
"
服务器: 消息 446,级别 16,状态 9,行 1
Cannot resolve collation conflict for UNION operation.
"
错误信息.

回复列表 (共1个回复)

沙发

注:两个表中的email字段的类型都一样.并且单独运行
SELECT email, 'N' AS member FROM Order_Epose

SELECT email, 'Y' AS member FROM Member_NET
都很正常.

我来回复

您尚未登录,请登录后再回复。点此登录或注册