小编Jas*_*bas的帖子

如何巧妙地使用现有记录表执行日期列表的左连接

我正在使用以下查询来获取两个给定日期之间的日期列表:

SELECT selected_date FROM 
(select adddate('1970-01-01',t4.i*10000 + t3.i*1000 + t2.i*100 + t1.i*10 + t0.i) selected_date from
 (select 0 i union select 1 union select 2 union select 3 union select 4 union select 5 union select 6 union select 7 union select 8 union select 9) t0,
 (select 0 i union select 1 union select 2 union select 3 union select 4 union select 5 union select 6 union select 7 union select 8 union select 9) t1,
 (select 0 …
Run Code Online (Sandbox Code Playgroud)

mysql

2
推荐指数
1
解决办法
1796
查看次数

标签 统计

mysql ×1