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:
相关文章
相关标签/搜索