Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

is it possible to explicity insert values in timestamp column of DB2

is it possible to explicity insert values in timestamp column of DB2? For example i have a date time value '2\11\2005 4:59:36 PM'. How to convert it to timestamp value in DB2?

Thanks in advance

like image 431
TrustyCoder Avatar asked Sep 17 '10 11:09

TrustyCoder


1 Answers

Another way to specify insert into timestamp field:

insert into mytable (timestamp_field, ...) values ('2018-07-25-14.56.11.000000', ...)
like image 197
Amit M Avatar answered Nov 14 '22 23:11

Amit M