I am using postgres sql as my database and i have a column with name event_time. The datatype for this column is time without time zone. i want to set default value for this column as current time with hh:mm:ss format. i have used now. But output i am getting is shown below.
17:39:33.476712
I want the format to be only hh:mm:ss and i want to remove microsecs. So, can the format (hh:mm:ss) be achieved using now() function?
CREATE TABLE public.event_notifications
(
event_time time(6) without time zone DEFAULT now(),
)
WITH (
OIDS = FALSE
)
TABLESPACE pg_default;