Skip to content

DB.Count函数貌似存在bug #6157

@CarbonPowder

Description

@CarbonPowder

在对某个字段group by后使用DB.Count统计总共条数时,如果group by后只有一个分组, DB.Count函数将获取到该分组下一共有多少条数据(即在sql中使用COUNT(*)时获取的数据)
image

例如这种情况我想通过DB.Count函数得到1(因为数据库中只存在这一天的数据),但是DB.Count函数却返回284(284是数据库中该天数下全部数据的条数)

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions