當(dāng)前位置:首頁(yè) > IT技術(shù) > 數(shù)據(jù)庫(kù) > 正文

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


查詢當(dāng)天數(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

開通會(huì)員,享受整站包年服務(wù)立即開通 >