在關聯式資料庫中有一個表格叫做 students,其中定義兩個屬性 id 和 name 記錄學生的學號和姓名,且 id 是主鍵,請問下列那個 SQL 指令可輸出這個表格所記錄的學生個數?
ASELECT id FROM students WHERE name IS NULL;
BSELECT count(*) FROM students GROUP BY name;
CSELECT count(distinct name) FROM students;
DSELECT count(id) FROM students;正確答案
答案與詳解
