引言
实践Qt+MySQL的小项目《餐饮信息服务系统》中,使用
select cid,cname,count(fname) from foodorder.orderlist group by cid
报错:
数据库查询出错:Expression #2 of SELECT list is not in GROUP BY clause and contains nonaggregated column
开发板推荐:天空星STM32F407VET6开发板
超高性价比 STM32主控 | 超高主频 | 一板兼容百芯 | 比赛神器 | 沉金彩色丝印
实践Qt+MySQL的小项目《餐饮信息服务系统》中,使用
select cid,cname,count(fname) from foodorder.orderlist group by cid
报错:
数据库查询出错:Expression #2 of SELECT list is not in GROUP BY clause and contains nonaggregated column
开发板推荐:天空星STM32F407VET6开发板
超高性价比 STM32主控 | 超高主频 | 一板兼容百芯 | 比赛神器 | 沉金彩色丝印
1万+
1万+
372
1944
1169

被折叠的 条评论
为什么被折叠?