SELECT 从表中选取数据。
SELECT 列名称 FROM 表名称
SELECT * FROM 表名称
表Persons
Id | LastName | FirstName | Address | City |
---|---|---|---|---|
1 | Adams | John | Oxford Street | London |
2 | Bush | George | Fifth Avenue | New York |
3 | Carter | Thomas | Changan Street | Beijing |
SELECT LastName FROM Persons:
SELECT * FROM Persons:
参考:
http://www.w3school.com.cn/sql/sql_select.asp