摘要:
【1】递归构造连续日期 该值默认最多只允许递归1000次 可以通过:set session cte_max_recursion_depth=1000000000 来配置最大递归数 with recursive t1 as ( select 1 as id union all select id+1 阅读全文
摘要:
查看表行数 系统表统计信息 :会有1~3%的不精准 use information_schema; select table_name,table_rows from tables where TABLE_SCHEMA = '数据库名' order by table_rows desc; 高效推荐 阅读全文