我必须在数据库中运行有关姓名,状态和电话号码的客户的报告。我有命令,但我在Select语句中不断收到语法错误。这是我到目前为止所拥有的。在此先感谢您的帮助。
SELECT (Last Name, First Name, State/Province, Business Phone)
FROM Customers
VALUES ('Cross', 'Sandra')
VALUES ('Speight', 'John')
VALUES ('Powell', 'Bill')
VALUES ('Stolle', 'Ryan')
VALUES ('Newman', 'Tony')
答案 0 :(得分:0)
试试这个。
SELECT [Last Name]
,[First Name]
,[State/Province]
,[Business Phone]
FROM Customers
WHERE [First Name] IN (
'Cross'
,'Sandra'
,'Speight'
,'John'
,'Powell'
,'Bill'
,'Stolle'
,'Ryan'
,'Newman'
,'Tony'
)