我正在使用mysql 5.5
,这是一个带有 literal
列表的左连接查询:
select tbl1.*, details.*
from ('a', 'b', 'c'... 300+ elements) as 'tbl1'
left join details
on
details.id=tbl1.id
但它不起作用!
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ''a','b')' at line 1
怎么把这个list
做成桌子??