where date > to_date('2018-05,'yyyyy-mm')
and date <= to_date(''2018-06','yyyy-mm')+1
最后的 +1 怎么解释
where date > to_date('2018-05,'yyyyy-mm')
and date <= to_date(''2018-06','yyyy-mm')+1
最后的 +1 怎么解释
收起
不知道你从哪搞的代码,“to_date('2018-5-01','yyyyy-mm') ” 这个是错的!
正确应该是:to_date('2018-5-01','yyyy-mm-dd')
+1就是增加1天。
报告相同问题?