您的位置:首页 > 其它

unexcept token. token is : 'union', at line 33 column 2, token type is 'Keyword'

2009-10-16 21:28 441 查看
两表合并时 使用union all 必须给表设置别名、还得注意明确字段

e.g:

select userInfo1.userName as uName,userInfo2.passWord as pw from (select * from user) userInfo1

union all

select userInfo2.userName as uName,userInfo2.passWord as pw from (select * from user) userInfo2
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐