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
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
相关文章推荐
- '4.294967295E9' in column '7' is outside valid range for the datatype INTEGER.
- nested exception is java.sql.SQLException: Unknown type '246 in column 1 of 3 in binary-encoded result set. 问题
- Nil is not compatible with expected argument type '[String : AnyObject]'
- error: request for member '*' in '*', which is of non-class type '*'
- nested exception is java.sql.SQLException: Data truncated for column 'update
- There is no ViewData item of type 'IEnumerable<SelectListItem>' that has the key ''.
- CodeSign error: code signing is required for product type 'Unit Test Bundle' in SDK 'iOS 8.0'
- Column 'Email' in where clause is ambiguous
- Anaconda下import caffe出现错误TypeError: 'module' object is not callable
- Cannot insert explicit value for identity column in table 'settings' when IDENTITY_INSERT is set to OFF.
- Data too long for column 'type' at row 1 Query: insert into news
- Unknown type &#39;246 in column 3 of 5 in binary-encoded result set
- Column 'id' in where clause is ambiguous
- IPAD真机调试CodeSign error: code signing is required for product type 'Application' in SDK 'iOS 8.0'
- GCC出现warning: integer constant is too large for 'long' type"
- **Access restriction: The type 'WebServlet' is not API (……)**
- Struts2 错误:There is no result type defined for type 'json' mapped with name 'success'.
- TypeError: 'tuple' object is not callable
- System.Xml.XmlException: '=' is an unexpected token. The expected token is ';'
- Cannot insert explicit value for identity column in table 'settings' when IDENTITY_INSERT is set to OFF.