我有這個SQL查詢的問題:「無法在全球ORDER子句中使用」 與MySQL訂購
(SELECT tb1.id,tb1.bdate,tb1.jumpCard,tb1.publicImage,tb1.lastlogin
FROM users AS tb1, online AS tb2
WHERE tb1.valid='1' AND tb1.sex='female' AND tb1.looking_for='male' AND tb1.id = tb2.member_id
ORDER BY tb1.publicImage) ORDER BY tb1.id DESC
由於某種原因,我得到:
Table 'tb1' from one of the SELECTs cannot be used in global ORDER clause
什麼建議嗎?
感謝
你已經保存單個查詢我的生活 – 2016-12-02 18:22:47