摘要:
/*今天*/select * from 表名 where to_days(时间字段) = to_days(now());/*昨天*/select * from 表名 where to_days(now())-to_days(时间字段) = 1;/*近7天*/select * from 表名 wher 阅读全文
摘要:
with as语法–针对一个别名with tmp as (select * from tb_name) –针对多个别名with tmp as (select * from tb_name), tmp2 as (select * from tb_name2), tmp3 as (select * fr 阅读全文