0

How to store timestamp in db and how to utilize timestamp in sql queries?

21st Jul 2016, 6:56 PM
ascetic
ascetic - avatar
3 Answers
0
insert new column data type datetime to your table and set default getdate() when insert query executes default set column take system date and time will be stored in that column u can use it like any other column ex your datetime column name is dtime then write select query like this select dtime from mytable u can give a alias name for that column
21st Jul 2016, 7:23 PM
ashwath nm
ashwath nm - avatar
0
and u don't have to pass value to that column😀 its a default column and also u can use that like any other column to update delete whatever you like
21st Jul 2016, 7:41 PM
ashwath nm
ashwath nm - avatar
0
INSERT INTO TABLE NAME VALUES (SYSDATE) ;
22nd Jul 2016, 4:58 PM
Rajesh
Rajesh - avatar