WHERE clause before INNER JOIN

后端 未结 7 843
小蘑菇
小蘑菇 2020-12-13 13:16

If I have

SELECT * FROM Table1 t1 
LEFT JOIN Table2 t2 ON t1.id = t2.id 
WHERE t1.user=\'bob\';

Does the WHERE clause run afte

相关标签:
7条回答
  • 2020-12-13 14:18

    Change the WHERE to another JOIN condition

    LEFT JOIN Table2 t2 on t1.id = t2.id AND t1.user='bob'

    0 讨论(0)
提交回复
热议问题