|
最佳回答 |
1
|
luojian0323Lv7资深互助发布于2021-12-1 15:11
|
where substr(month_date,1,7)=substr(current_date,1,7)
|
|
|
|
最佳回答 |
0
|
CD20160914Lv8专家互助发布于2021-12-1 15:44(编辑于 2021-12-1 15:44)
|
oracle的数据库这样 to_char(trunc(trunc(sysdate, 'month') - 1, 'month'),'yyyymm') 不知道你的是什么数据库
|
|
|
|
最佳回答 |
0
|
yzm185688Lv2见习互助发布于2021-12-3 16:24
|
strleft(create_date,7) = strleft(to_date(months_sub(now(),1)),7)
|
|
|
|
最佳回答 |
0
|
用户e7w8d0325875Lv2见习互助发布于2021-12-3 16:32(编辑于 2021-12-3 16:33)
|
to_date(substr(month_date,1,6))=to_date(today())-1 month
|
|
|