On Thu, Sep 22, 2016 at 1:37 PM, Patrick B <patrickbakerbr@xxxxxxxxx> wrote:
Hi guys,I'm using postgres 9.2 and got the following column:start TIMESTAMP(6) WITHOUT TIME ZONE NOT NULLSELECT start FROM test1;2015-12-18 02:40:00I need to split that date into two columns on my select:2015-12-18 = date column02:40:00 = time columnHow can I do that without modifying any column/data?Maybe in a select?
postgres=# select to_char(start, 'DD-MM-YYYY') from test;
to_char
------------
18-12-2015
Regards,
Venkata B N
Fujitsu Australia