Skip to content

Instantly share code, notes, and snippets.

@MangoLiu
Created October 8, 2014 08:38
Show Gist options
  • Save MangoLiu/92b4dd13fc8b89347bdf to your computer and use it in GitHub Desktop.
Save MangoLiu/92b4dd13fc8b89347bdf to your computer and use it in GitHub Desktop.
获取数据表的行数
select count(*)
from 表名
where 条件
@MangoLiu
Copy link
Author

MangoLiu commented Oct 8, 2014

--根据某列去重
select count(DISTINCT 列名)
from 表名
where 条件

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment