SELECT * FROM cars WHERE carBrand LIKE '%alfa%' OR carModel LIKE '%alfa%'
Run Code Online (Sandbox Code Playgroud)
我放在那句话之后的所有东西都被忽略了.我本希望能够做到这一点.
SELECT * FROM cars
WHERE carBrand LIKE '%alfa%'
OR carModel LIKE '%alfa%' AND carType = 'truck'
Run Code Online (Sandbox Code Playgroud)
这只是被忽略了.
AND carType = 'truck'
Run Code Online (Sandbox Code Playgroud)
为什么?