Re: Oracle - Anfängerfrage zu Datentyp DATE
- From: Moritz Klein <mklein@xxxxxxxxxxxxxxxxxxxxx>
- Date: Fri, 25 Nov 2005 17:56:21 +0100
Florian Melcher schrieb:
INSERT INTO T1 (YEAR_MONTH, NR) SELECT '2005-07', A.NR FROM T2 A;
You have to use the to_date function.
INSERT INTO T1 (YEAR_MONTH, NR)
SELECT to_date('2005-07', 'yyyy-mm'), A.NR
FROM T2 A;You can control the output in your query using the to_char function.
hth, Moritz .
- Follow-Ups:
- Re: Oracle - Anfängerfrage zu Datentyp DATE
- From: ChrisF
- Re: Oracle - Anfängerfrage zu Datentyp DATE
- References:
- Oracle - Anfängerfrage zu Datentyp DATE
- From: Florian Melcher
- Oracle - Anfängerfrage zu Datentyp DATE
- Prev by Date: Oracle - Anfängerfrage zu Datentyp DATE
- Next by Date: Re: Oracle can read file not allowed by oracle user
- Previous by thread: Oracle - Anfängerfrage zu Datentyp DATE
- Next by thread: Re: Oracle - Anfängerfrage zu Datentyp DATE
- Index(es):