我使用Codeigniter
我的无效SQL查询:
SELECT *, (SELECT menu FROM sepetim WHERE SiparisId = S.Id) AS menum
FROM siparisler AS S
WHERE onay = 1 AND BayiId = '1'
ORDER BY Id desc
我有这样的表:
Table1 Table2
Id Id | Text
1 1 name1
2 1 name2
2 name3
你能帮帮我吗?感谢名单。