gpt4 book ai didi

android - sqlite 中的 GROUP BY 不起作用

转载 作者:搜寻专家 更新时间:2023-11-01 08:05:32 25 4
gpt4 key购买 nike

我在我的 sql 查询中使用 GROUP BY。

查询是:

SELECT _id, message_type, message_type_id FROM msgs_list GROUP BY message_type_id

此查询不执行 GROUP BY 的功能。 **它的功能如下:

SELECT _id, message_type, message_type_id FROM msgs_list

当我将数据库从设备下载到 Windows 机器时,相同的查询在 Windows 机器上运行完美。

观察结果:

enter image description here

预期结果:

enter image description here

任何人都可以提出可能的解决方案。

谢谢,
沙。

最佳答案

据我所知,GROUP BY 子句可以与“aggregate_function”或 Having 子句一起使用。

The GROUP BY Statement

关于android - sqlite 中的 GROUP BY 不起作用,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/14826482/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com