Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.misc -> Re: Concatenate
Reiro wrote:
> Hi
>
> The Start_date is of type DATE. Start_time is of type NUMBER. i had
> to put start_time as number for upload.
> Although my third column i want the data in is of type TIMESTAMP.
SQL> create table foo (d date, n number, t timestamp);
Table created
SQL> insert into foo values (sysdate, 55000, null);
1 row inserted
SQL> select * from foo;
D N T
SQL> update foo set t = to_timestamp(to_char(d, 'DDMMYYYY') || ' ' || lpad(to_char(n), 6, 0), 'DDMMYYYY HH24MISS');
1 row updated
SQL> select * from foo;
D N T