What word is missing from the following SQL statement?



__________ count(*) from tablename;

(Please specify the missing word using lower-case letters only.)

Answer: select

題解

SELECT敘述的基本用法如下:

SELECT * from tablename

如果要指定查詢的欄位及順序,可以寫成:

SELECT column1, column2, column3, ... from tablename

如果要計算查詢的結果列數,可以寫成:

SELECT count(*) from tablename

SQL的關鍵字沒有區分大小寫,所以「SELECT」也可以寫成「select」。