I am trying to insert null value to oracled nullable date,somehow its generating error called
ORA-01841: (full) year must be between -4713 and +9999, and not be 0
I am not putting any condition in transformer,i am simply inserting this into oracle nullable date.
Please let me know how to insert null value to oracle nullable date.
Thanks in advance..
NUll to oracle date
Moderators: chulett, rschirm, roy
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact:
Re: NUll to oracle date
i agree with chulett their should be no problem.
i also agree with chulett their should be no problem.
(Hey, just trying to get my post count up. Trying to catch up with chulett. I have 11,000 to go.)
(Just a little levity on a Friday morning.)
Ray, actually inserting '' (no space) into a nullable field does insert a null, for Oracle.
CREATE TABLE HDR_005001.Craig_test (
EFFECTIVE_START_DT DATE NULL
)
INSERT INTO HDR_005001.CRAIG_TEST(EFFECTIVE_START_DT)
VALUES('')
GO
select * from HDR_005001.CRAIG_TEST
EFFECTIVE_START_DT
---------------------
(null)
1 record(s) selected [Fetch MetaData: 0/ms] [Fetch Data: 0/ms]
[Executed: 6/22/07 8:25:02 AM MDT ] [Execution: 125/ms]
-Craig
(Hey, just trying to get my post count up. Trying to catch up with chulett. I have 11,000 to go.)
(Just a little levity on a Friday morning.)
Ray, actually inserting '' (no space) into a nullable field does insert a null, for Oracle.
CREATE TABLE HDR_005001.Craig_test (
EFFECTIVE_START_DT DATE NULL
)
INSERT INTO HDR_005001.CRAIG_TEST(EFFECTIVE_START_DT)
VALUES('')
GO
select * from HDR_005001.CRAIG_TEST
EFFECTIVE_START_DT
---------------------
(null)
1 record(s) selected [Fetch MetaData: 0/ms] [Fetch Data: 0/ms]
[Executed: 6/22/07 8:25:02 AM MDT ] [Execution: 125/ms]
-Craig
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact: