时间:2021-07-01 10:21:17 帮助过:24人阅读
SELECT id,name
FROM test
WHERE type_1 = 1 OR type_2 = 1 AND id = 1
SELECT id,name
FROM test
WHERE (type_1 = 1 OR type_2 = 1) AND id = 1
SELECT id,name
FROM test
WHERE type_1 = 1 OR (type_2 = 1 AND id = 1)
SELECT id,name
FROM test
WHERE (type_1 = 1 OR type_2 = 1) AND id = 1