按理既然是日期型的欄位,那麼它的值也應該是日期型的,否則是存不進去的,既然有這樣的數據,那麼就建個函數吧,大概是這樣的.createorreplacefunctionisdate(pdatevarchar2)returnvarchar2isv_datedate;beginv_date:=to_date(pdate,'yyyy/mm/dd');return'true';exceptionwhenothersthenreturn'false';end;然後在你的語句中用就可以了select*fromtablewhereisdate(欄位)='false'。
@pic
頂0
加入收藏
相關問答推薦