草庐IT

bobotteam

全部标签

php - 如何显示group by中的所有列

我有两个表team和bobotteam,然后我尝试了这个查询:SELECTteam.id,bobotteam.teamfight/MAX(bobotteam.teamfight)FROMteamINNERJOINbobotteamonteam.id=bobotteam.id为什么数据只显示1个数据,即使我在bobotteam表中有两个数据。图片 最佳答案 请试试这个:SELECTteam.id,bobotteam.teamfight/(selectMAX(bobotteam.teamfight)frombobotteam)FROMt