一般都是这样使用的:SELECT COUNT(列名)……或SELECT DISTINCT……,如果需要同时使用COUNT和DISTINCT,应该这样写:SELECT COUNT(DISTINCT 列名)……,其中,“列名”不能使用*,至少要给出一个列的名称。

Written on 2007/02/28 by Doctor - Reads: 3310 Comments: 0

发表评论
表情
emotemotemotemotemot
emotemotemotemotemot
emotemotemotemotemot
emotemotemotemotemot
emotemotemotemotemot
打开HTML
打开UBB
打开表情
隐藏
昵称   密码   游客无需密码
网址   电邮   [注册]
               

验证码 不区分大小写