SQL Error表示每个派生表都必须有别名

时间:2015-04-28 11:50:15

标签: mysql sql

当我使用此查询时

select s.* from ta as s left join (select a.* from tb as a)

出现此错误

  

每个派生表必须有自己的别名

1 个答案:

答案 0 :(得分:0)

您需要在括号后添加别名,如下所示

select s.* 
from ta as s 
left join (select a.* from tb as a) as a on/* here you need input condtion */