Created
October 8, 2014 08:38
-
-
Save MangoLiu/92b4dd13fc8b89347bdf to your computer and use it in GitHub Desktop.
获取数据表的行数
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
select count(*) | |
from 表名 | |
where 条件 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
--根据某列去重
select count(DISTINCT 列名)
from 表名
where 条件