java.util.Date cannot be cast to java.sql.Date

Date date=new Date(); 
new java.sql.Date(date.getTime()) ;

https://stackoverflow.com/questions/18614836/using-setdate-in-preparedstatement

 

 

    全站熱搜

    咪卡恰比 發表在 痞客邦 留言(0) 人氣()