I have the following problem, in the source I have the data coming as varchar
Sample source data in varchar format:
- 08:15:49
- 18:16:05
- 20:01:33
etc ...
I need to re-insert this data into a new table so I made an insert with the following select
INSERT INTO NOVA_TABELA(
NOVO_CAMPO
)
SELECT
TO_TIMESTAMP(hora, 'HH24:MI:SS')
FROM TABELA_ANTIGA;
The problem is that I only need the time, and the timestamp is adding date next to the time
transformation output:
- 0001-01-01 08:15:49
- 0001-01-01 18:16:05
- 0001-01-01 20:01:33
I want to just convert the source string to time without adding anything, but I'm not getting ...