每一个派生表必须有它自己的别名(Every derived table must have its own alias)

来源:互联网 发布:java获取当前编码格式 编辑:程序博客网 时间:2024/06/18 10:53

每一个派生表都必须给其取个别名

如:

select * from (select * from table_a union select * from table_b
解决办法: 
select * from (select * from table_a union select * from table_b)c
如果不加上这个别名,就会出现异常

阅读全文
0 0
原创粉丝点击