If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > Oracle > Value of null date field in Oracle 11g

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old
Registered User
 
Join Date: Oct 2011
Posts: 2
Question Value of null date field in Oracle 11g

Hi All,
Does anyone know what value is stored in a null date field for Oracle 11g? The value in Oracle 10g is 01011700. Is this changing? Thanks.
Reply With Quote
  #2 (permalink)  
Old
Registered User
 
Join Date: Aug 2003
Location: Where the Surf Meets the Turf @Del Mar, CA
Posts: 7,571
>Does anyone know what value is stored in a null date field for Oracle 11g?
a NULL column has NO value
>The value in Oracle 10g is 01011700.
I disagree. BTW - what date is above?
>Is this changing? Thanks.
What do your test cases show?
__________________
You can lead some folks to knowledge, but you can not make them think.
The average person thinks he's above average!
For most folks, they don't know, what they don't know.
Don't say, show. Don't promise, prove.
Reply With Quote
  #3 (permalink)  
Old
Lost Boy
 
Join Date: Jan 2004
Location: Croatia, Europe
Posts: 3,981
Eh? NULL is simply NULL, nothing, absence of information, unknown. As far as I know, no value is stored in any NULL column (which includes DATE columns).

Where does the information about
Quote:
The value in (a null date field for) Oracle 10g is 01011700
come from? Could you post a link?
Reply With Quote
  #4 (permalink)  
Old
Registered User
 
Join Date: Oct 2011
Posts: 2
Not in testing mode. Powers that be have notified us that we're going to Oracle 11g and some heard somewhere that the value for null date was changing. If that is the case we have several hundred Crystal programs we have to change. Just wanting to be proactive if this indeed is true.
Reply With Quote
  #5 (permalink)  
Old
Lost Boy
 
Join Date: Jan 2004
Location: Croatia, Europe
Posts: 3,981
Quote:
some heard somewhere
That's called a reliable source.
Reply With Quote
  #6 (permalink)  
Old
Lead Application Develope
 
Join Date: Jun 2004
Location: Liverpool, NY USA
Posts: 2,412
I suspect that your default value in your application for date fields is 01/01/1700. For example the earliest date in salesforce application is 01/01/1700. If this is true, there will be no difference in date fields between 10 and 11. They operate the same.
__________________
Bill
You do not need a parachute to skydive. You only need a parachute to skydive twice.
Reply With Quote
  #7 (permalink)  
Old
Lost Boy
 
Join Date: Jan 2004
Location: Croatia, Europe
Posts: 3,981
Anyway, that's kind of silly. For example, there are HIRE_DATE (date when someone was hired) and END_DATE (date when someone quit the job, retired or something like that). Someone was employed on 24.08.2005 and is still working. According to the previous statement,
Code:
select hire_date, end_date from employees 
where employee = 'SCOTT'
returns
Code:
HIRE_DATE   END_DATE
----------  ----------
24.08.2005  01.01.1700
which is far from being true.

Or, is there any other explanation?
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On