gpt4 book ai didi

mysql计算唯一行值

转载 作者:IT老高 更新时间:2023-10-29 00:02:12 24 4
gpt4 key购买 nike

TABLE 引用

id  clientid
1 25
2 25
3 25
4 25
5 26

如何查询TABLE报价中有多少个不同的客户?我不希望重复的条目被计算多次。

我需要答案是 2,在 1 行中,因为唯一不重复的条目是 (25, 26)。

最佳答案

select count(distinct clientid) from quotation

read more

关于mysql计算唯一行值,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/4131937/

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