In postgre sql - How do I alter a column which has time stamp.
Currently the column is defined as below -
creation_time timestamp(6) with time zone
and i want to make the above column not null also. So i have tried below but had no luck
ALTER TABLE my_table ALTER COLUMN creation_time TYPE timestamp(6) with time zone NOT NULL;
What is the correct syntax ?
ALTER TABLE table_name ALTER COLUMN column_name SET NOT NULL;