1、日期和时间是两个字段,比如要查询2020/10/28 08:40:00到 2020/10/28 17:02:00的数据
DATA: lt_data TYPETABLE OF cdhdr.
SELECT FROM cdhdr
WHERE CAST ( concat( udate, utime ) As NUMc( 14 ) ) > 20201028084000 AND
CAST( concat( udate, utime ) As NOMC( 14 ) ) < '20201028170200'
工NTOTABLE@lt_data.
2.日期函数:
3.时间戳函数: