• 2022-06-19
    通过 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'
  • C

    举一反三

    内容

    • 0

      通过 SQL,按字母顺序选取 Actor 表中 LastName 介于 Adams 和 Carter 的所有记录的表述正确的是( )。 A: SELECT * FROM Actor WHERE LastName BETWEEN 'Adams' AND 'Carter' B: SELECT * FROM Actor WHERE LastName>'Adams' AND LastName<'Carter' C: SELECT LastName>'Adams' AND LastName<'Carter' FROM Actor D: SELECT * FROM Actor WHERE LastName>'Adams' OR LastName<'Carter'

    • 1

      通过 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

    • 2

      通过 SQL,您如何从 "Persons" 表中选取 "FirstName" 列? A: SELECT Persons.FirstName B: SELECT FirstName FROM Persons C: EXTRACT FirstName FROM Persons

    • 3

      通过 SQL,您如何在 "Persons" 表中删除 "FirstName" 等于 "Fred" 的纪录? A: DELETE FROM Persons WHERE FirstName = 'Fred' B: DELETE FirstName='Fred' FROM Persons C: DELETE ROW FirstName='Fred' FROM Persons

    • 4

      在员工管理系统中,查询表employee表中所有员工的姓名,字段:id(int),firstname(varchar),lastname(varchar),以下sql语句正确的是()。 A: Select firstname +’.’+ lastname as ‘name’ from employee B: Select firstname +’.’+ lastname from employee C: Select ‘name’= firstname +’.’+ lastname from employee D: Select firstname,lastname from employee