设birthday为DATE类型
cast(birthday as timestamp)
to_char(birthday,'YYYY-MM-DD HH24:MI:SS')
to_date('2007/11/12 23:12:15',YYYY-MM-DD HH24:MI:SS')
对birthday在JDBC中用new java.util.Date()赋值,将只会有年月日,没有时分秒.
cast(birthday as timestamp)
to_char(birthday,'YYYY-MM-DD HH24:MI:SS')
to_date('2007/11/12 23:12:15',YYYY-MM-DD HH24:MI:SS')
对birthday在JDBC中用new java.util.Date()赋值,将只会有年月日,没有时分秒.