我正在尝试mysql中的group by innerjoin。它显示未知的列名。你能帮我解决这个问题吗?在group by中的查询""SELECT Min(Id) FROM testinbcalls by lc.DBID“”中,我得到了一个错误“"Unknown列名DBID in the groupby”JOIN testinit init on ic.InitId=init.Id
select * from tableA INNERJOIN tableB ON tableA.type = ?AND tableB.ref = tableA.id
select * from tableA INNERJOIN tableB ON tableB.ref = tableA.id WHERE tableA.type
(SELECT * FROM table1 ON table1.id = table2.id) JOIN (SELECT ROUND(RAND()MAX(table1.id) FROM table1)) AS id) WHERE t1.id >= t2.id 我尝试使用RAND() max(id)来获取随机的mysql#1064 - You have an error in your SQL syntax;