I have a Timestamp object -
java.sql.Timestamp time = null;
and the value datetime val_timein the DB table.
val_time datetime
The situation is that when the operation is performed, this val_timeone is not updated (which in my case is pretty normal). When reading from the database, the datetime value will naturally be zero. Thus, the timestamp object will also be null. My question is, can we get a default value other than zero?
source
share