1、在oracle中date類型的數據格式是固定的,yyyy-MM-DD HH:MI;SS(注意在oracle中是不區分大小寫的)
2、字符串與date比較,select * from dual where startdate>to_date(enddate,'yyyy-mm-dd hh:mi:ss')(注意:startdate是date類型,enddate是字符串類型)
1、在oracle中date類型的數據格式是固定的,yyyy-MM-DD HH:MI;SS(注意在oracle中是不區分大小寫的)
2、字符串與date比較,select * from dual where startdate>to_date(enddate,'yyyy-mm-dd hh:mi:ss')(注意:startdate是date類型,enddate是字符串類型)