I am new to postgres and I have been working on Mysql for quiet sometimes. I need to migrate content from Mysql table to Postgres table.
My Postgres table is like this:
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 created_at and updated_at value from 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 in the form "2016-01-22 17:44:53.342757" which inclues millisecond in the timestamp.
Now I need to add the millisecond to the mysql timestamp format to match the postgres table format.
Please help to add the millisecond into the timestamp.
Thanks in advance!