sql - Adding a column in database of time type which automatically subtract inserted value from current time -
basically want time subtraction @ database end. mean whatever value insert in time field application should automatically subtracted current time , result should inserted in field.
you add or subtract datetime values each other. dates can in order , ouput positve/negative
datetime (2003-9-30 12:30) year minute - datetime (2003-8-1 11) year hour
result: interval (60 01:30) day minute
Comments
Post a Comment