• 2022-06-07
    selectcount(*)fromstudent和selectcount(id)fromstudent之间的区别是什么?
  • selectcount(*)统计所有学生的记录个数,包括空记录。selectcount(Id)统计所有学生的记录个数,不包括null记录。

    内容

    • 0

      从学生表student查询学生的所有信息,正确的语句是______。 A: SELECT#FROMstudent B: SELECT*FROMstudent; C: SELECT?FROMstudent; D: SELECT_FROMstudent;

    • 1

      SELECTcount(*)FROMemployee表示查出记录条数

    • 2

      查询女生人数Selectcount(*)fromstudentwhere()=’女’

    • 3

      假定表table1中phone列有空值,则selectcount(*)fromtable1与selectcount(phone)fromtable1相等吗?() A: 相等 B: 不相等

    • 4

      分别查询男女生学生人数Selectcount(*)fromstudentgroupby()