mysql使用查詢結果做爲臨時表

(一)select查詢做爲臨時表 select cou,name from (select count(*) AS cou,enabled AS name from `user` group by enabled ) as a where cou>0 上面的語句就是將查詢結果做爲臨時表,而後再在這個臨時表中查找知足條件的數據。html     語法: (注意:AS 可省略)數據庫   CODE:
相關文章
相關標籤/搜索