通过 SQL,您如何从 "Persons" 表中选取 "FirstName" 列的值等于"Peter" 的所有记录?
A: SELECT [all] FROM Persons WHERE FirstName='Peter'
B: SELECT * FROM Persons WHERE FirstName LIKE 'Peter'
C: SELECT [all] FROM Persons WHERE FirstName LIKE 'Peter'
D: SELECT * FROM Persons WHERE FirstName='Peter'
A: SELECT [all] FROM Persons WHERE FirstName='Peter'
B: SELECT * FROM Persons WHERE FirstName LIKE 'Peter'
C: SELECT [all] FROM Persons WHERE FirstName LIKE 'Peter'
D: SELECT * FROM Persons WHERE FirstName='Peter'
举一反三
- 通过 SQL,您如何从 "Persons" 表中选取 "FirstName" 列的值以 "a" 开头的所有记录? A: SELECT * FROM Persons WHERE FirstName LIKE 'a%' B: SELECT * FROM Persons WHERE FirstName='a' C: SELECT * FROM Persons WHERE FirstName LIKE '%a' D: SELECT * FROM Persons WHERE FirstName='%a%'
- 通过 SQL,您如何在表 Persons 中选择 FirstName 等于 Thomas ,并 且LastName 等于 Carter 的所有记录? A: SELECT * FROM Persons WHERE FirstName LIKE 'Thomas' AND LastName LIKE 'Carter' B: SELECT FirstName='Thomas', LastName='Carter' FROM Persons C: SELECT * FROM Persons WHERE FirstName='Thomas' AND LastName='Carter'
- 通过 SQL,您如何从 "Persons" 表中选取 "FirstName" 列? A: SELECT Persons.FirstName B: SELECT FirstName FROM Persons C: EXTRACT FirstName FROM Persons
- 通过 SQL,您如何根据 "FirstName" 列降序地从 "Persons" 表返回所有记录? A: SELECT * FROM Persons SORT 'FirstName' DESC B: SELECT * FROM Persons ORDER BY FirstName DESC C: SELECT * FROM Persons ORDER FirstName DESC D: SELECT * FROM Persons SORT BY 'FirstName' DESC
- 通过 SQL,从 “actor” 表中选取 "FirstName" 列的值等于"John" 的所有记录的表述正确的是( )。 A: SELECT [all] FROM Actor WHERE FirstName LIKE 'John' B: SELECT [all] FROM Actor WHERE FirstName='John' C: SELECT * FROM Actor WHERE FirstName LIKE 'John' D: SELECT * FROM Actor WHERE FirstName='John'