當前位置:首頁 > IT技術 > 數(shù)據(jù)庫 > 正文

oracle 查詢當天數(shù)據(jù) 上一天的數(shù)據(jù)
2022-09-06 22:42:57


查詢當天數(shù)據(jù)量

select count(*) from 表名 b where  b.reqdate = to_date(to_char(sysdate,'YYYY-MM-DD'),'YYYY-MM-DD')

查詢上一天數(shù)據(jù)量

select count(*) from 表名 b where  b.reqdate = to_date(to_char(sysdate-1,'YYYY-MM-DD'),'YYYY-MM-DD')


本文摘自 :https://blog.51cto.com/g

開通會員,享受整站包年服務立即開通 >