摘要:
1. 代码 select a.id,count(b.id) as rank from stock_up_rate a left join stock_up_rate b on a.industry=b.industry where a.up5<=b.up5 group by a.id理解:使用a表中 阅读全文
摘要:
1. -- mysql select GROUP_CONCAT(column_name) from information_schema.columns where table_schema='数据库名' and TABLE_NAME = '表名'GROUP BY table_name; -- pg 阅读全文