(转载)http://hi.baidu.com/lylegend13/item/a79f17eb51f5dff7e0a5d43b

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

相关文章:

  • 2021-11-18
  • 2021-05-26
  • 2021-12-26
  • 2022-12-23
  • 2022-02-09
  • 2021-09-08
  • 2021-05-29
猜你喜欢
  • 2021-10-29
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-06-11
  • 2022-12-23
  • 2022-02-01
相关资源
相似解决方案