Oracle: Fuzzy query time field

One day need to query the data, but the library is kept inside view of date type

 

 The Oracletime field is converted into a string and the query string Fuzzy

select * from CAINIAO_MONITOR_MSG t WHERE to_char(t.CREATE_TIME,'yyyy-MM-dd') like '2019-09-12'

 

Guess you like

Origin www.cnblogs.com/gcgc/p/11544018.html