I am new to postgres and sometimes I worked on Mysql. I need to transfer content from a Mysql table to a Postgres table.
My Postgres table is as follows:
Column | Type | Modifiers --------------------------------+-----------------------------+------------------------------------------------------------------------------------------------ id | integer | created_at | timestamp without time zone | not null default timezone('UTC'::text, now()) updated_at | timestamp without time zone | not null default timezone('UTC'::text, now()) key_classification | character varying(2000) | not null
I am inserting the value of created_at and updated_at from the mysql table, which is in the form "2014-09-04 23:40:14".
when I insert a row into my postgres table, the default timestamp is of the form "2016-01-22 17: 44: 53.342757", which includes the second timestamp in the timestamp.
Now I need to add a millisecond to the mysql timestamp format to match the postgres table format.
Help add a millisecond to the timestamp.
Thanks in advance!
source share