是否可以做这样的 OR 语句?
WHERE pR.projectRelationId = '$id[ 0 ]' OR '$id[ 1 ]' OR '$id[ 2 ]'
AND pR.type = 'yada' AND
还是您必须继续重新声明比较:
WHERE
pR.projectRelationId = '$id[ 0 ]' OR
pR.projectRelationId = '$id[ 1 ]' OR
pR.projectRelationId = '$id[ 2 ]'
AND
pR.type = 'yada' AND