嘿傢伙,我已經嘗試了MySQL的嵌套查詢這就好比在phpMyAdmin使用嵌套查詢錯誤
SELECT test.babe,test.some
FROM (
SELECT 'password' AS babe
) test
它做工精細
但是,當我試圖
SELECT babe,some
FROM (
SELECT 'password' AS babe
SELECT 'username' AS some
) test
它拋出錯誤像
#1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'SELECT 'username' AS some) test' at line 5
對於mysql來說是新的。希望你們能幫助我..
如果您是新的SQL,你會發現,讀一本書或教程學習它比要求StackOverflow上的問題的更有效的方式。嘗試http://sqlzoo.net/ – 2014-09-25 16:58:00