Có câu lệnh chạy mãi không được, vì có cả join và where.
Hóa ra khi có join thì where phải chuyển luôn vào trong join và biến thành AND
dạng
`Join table1
On table.user_id = table1.id
AND abc (where condition)`
Lưu lại để nhớ
clean-blogging
domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init
action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /var/www/blog/wp-includes/functions.php on line 6121On simple things
Có câu lệnh chạy mãi không được, vì có cả join và where.
Hóa ra khi có join thì where phải chuyển luôn vào trong join và biến thành AND
dạng
`Join table1
On table.user_id = table1.id
AND abc (where condition)`
Lưu lại để nhớ