有一字段为日期型,当其值为:6/21/2003 19:52:41,则删掉,语句如何写?
我用...=to_date(,)不行,
用:
aNoExam.setSql ( "delete from NOEXAM where NOEXAMDATE=" + sf.parse( strDate[m] ) );//sf是一个SimpleDateFormat对像
也不行?为什么呢?!
我用...=to_date(,)不行,
用:
aNoExam.setSql ( "delete from NOEXAM where NOEXAMDATE=" + sf.parse( strDate[m] ) );//sf是一个SimpleDateFormat对像
也不行?为什么呢?!
and myDate< to_date('6/22/2003','mm/dd/yyyy ');