使用时有什么不同(在性能方面):A:
SELECT Col1, Col2, Col3, col7
FROM xTable
WHERE (col1 > 0)
AND (col7 >= 0)
OR (col2 > 0)
AND (col7 >= 0)
OR (col3 > 0)
AND (col7 >= 0)
B:并使用:
SELECT Col1, Col2, Col3, col7
FROM xTable
WHERE ( (col1 > 0) OR (col2 > 0) OR (col3 > 0) )
AND (col7 >= 0)