select count(0) from (select investor_uid from lzh_borrow_investor group by investor_uid) as temp
转载于:https://www.cnblogs.com/jianghaidong/p/5265768.html
本文介绍了一种使用SQL进行数据查询的技巧,通过一个具体的例子展示了如何使用group by和select count(*)来统计唯一投资者的数量。
select count(0) from (select investor_uid from lzh_borrow_investor group by investor_uid) as temp
转载于:https://www.cnblogs.com/jianghaidong/p/5265768.html
4548

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