在选择列表中无效,因为该列既不包含在聚合函数中,也不包含在 GROUP BY 子句 突然看到这个问题,脑袋一蒙,不知道啥意思,后来想想,试图把select里的选项放到后面,问题自然解决! 下面这个就是报“orderdate select shipcountry,sum(shipvia) as totalvia,OrderDate as thefirsttime from orders group by shipcountry,相应的从网上看到其他的朋友也有这样的问题 比如要显示author…
SQL语句: select * from (select distinct t2.issue,cashmoney from (select distinct issue from lot_gamepara)t1 join(select distinct cashmoney,issue from lot_cash)t2on t1.issue = t2.issue order by issue,cashmoney ) tt1,(select poscode from lot_game where t…