db2数据库 我要根据当前时间减去一个小时作为开始时间,当前时间作为结束时间查询总数量select

发布时间:2021-03-10 08:01:02

db2数据库 我要根据当前时间减去一个小时作为开始时间,当前时间作为结束时间查询总数量select count(*) fromtable where req

网友回答

select count(*) fromtable where req_time between current time - 1 hours and current time
以上问题属网友观点,不代表本站立场,仅供参考!