MySql count去掉重复语句_MySQL
程序员文章站
2022-05-29 20:42:13
...
bitsCN.com
MySql count去掉重复语句 1.select count(distinct CName) from Course
2.select count(CName) from (select distinct CName from Course) as temp
as可有可无。temp作为别名,若无则提示错误:1248 – Every derived table must have its own alias
摘自 王贺的博客 bitsCN.com
MySql count去掉重复语句 1.select count(distinct CName) from Course
2.select count(CName) from (select distinct CName from Course) as temp
as可有可无。temp作为别名,若无则提示错误:1248 – Every derived table must have its own alias
摘自 王贺的博客 bitsCN.com
上一篇: [转载]php软件工程师要注意的
下一篇: 第八节 访问方式 [8]_PHP教程