SELECT * FROM Customers
WHERE City LIKE 'b%' limit 3;
出现以下错误:
Syntax error (missing operator) in query expression 'City LIKE 'b%' limit 3'.
答案 0 :(得分:3)
错误消息表明您正在使用MS Access。您需要使用TOP
而不是LIMIT
:
SELECT TOP 3 * FROM Customers
WHERE City LIKE 'b%'
-- ORDER BY some_column'; -- to get stable results