超爱冰阔落(提问者)select TJSJ,DSTARTDATETIME,DENDDATETIME,ZTJSJ,F,P,G,VALIAS from KTJJL2
where TJSJ BETWEEN \'${=DATEINMONTH(TODAY(),1)}\' AND
\'${=DATEINMONTH(TODAY(),-1)}\'
超爱冰阔落(提问者) 回复 小学生三岁半select TJSJ,DSTARTDATETIME,DENDDATETIME,ZTJSJ,F,P,G,VALIAS from KTJJL2
where TJSJ BETWEEN \'${=DATEINMONTH(TODAY(),1)}\' AND
\'${=DATEINMONTH(TODAY(),-1)}\'
select abs(today-yes) ts from (
select to_char(sysdate,'dd') today, substr(10位的日期,9,2) yes from table1 where substr(10位的日期,6,2)=substr(to_char(sysdate,'MM'),1,2))