Exforsys

Online Training

Value of NULL

This is a discussion on Value of NULL within the Oracle Database forums, part of the Database category; I want to know what is the value of NULL in oracle.Is this equal to zero, or is it ...


Go Back   Exforsys > Database > Oracle Database

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply

 

LinkBack Thread Tools
  #1 (permalink)  
Old 12-10-2006, 02:42 AM
Senior Member
 
Join Date: Apr 2006
Posts: 125
ashlee is on a distinguished road
Value of NULL

I want to know what is the value of NULL in oracle.Is this equal to zero, or is it equal to spaces or any junk value.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 12-11-2006, 05:12 AM
Junior Member
 
Join Date: Nov 2006
Location: Bangalore, India
Posts: 12
sarunraj is on a distinguished road
Send a message via AIM to sarunraj Send a message via Yahoo to sarunraj
Thumbs up Null

NULL is not equal to ZERO.
It just means that there is no value at all in that memory area / column / field.

Hope it helps,
Arun
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 12-12-2006, 10:09 PM
Junior Member
 
Join Date: Dec 2006
Posts: 6
nnirmalkumar is on a distinguished road
hi,

Its just a empty thing............ thts all
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 12-19-2006, 02:29 PM
Senior Member
 
Join Date: Apr 2006
Posts: 125
ashlee is on a distinguished road
I could understand that it is nothing but what is the value that gets stored in memory area of the column made as NULL. Will it be junk?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 01-10-2007, 08:34 AM
Junior Member
 
Join Date: Jan 2007
Posts: 2
madug is on a distinguished road
hai
Null is not a Zero or any number ,it is a blank space
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 01-14-2007, 10:00 AM
Senior Member
 
Join Date: Apr 2006
Posts: 144
caradoc is on a distinguished road
Friends very nice discussion going around. Since NULL is blank as specified here in this discussion is it possible to compare two NULL. Will it give error?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7 (permalink)  
Old 01-14-2007, 12:34 PM
Junior Member
 
Join Date: Dec 2006
Posts: 5
nagivijay is on a distinguished road
the value of null

The value of null is unkown..it means its not been initiated. So null never be considered as zero or anyvalue.In a table balnk space and zero both has a value. so null is considered as an unkown.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #8 (permalink)  
Old 03-06-2007, 06:04 AM
Junior Member
 
Join Date: Nov 2006
Location: Bangalore, India
Posts: 12
sarunraj is on a distinguished road
Send a message via AIM to sarunraj Send a message via Yahoo to sarunraj
Value of Null

Hi,

NULL in Oracle means that there is no value in that memory area. It is not equal to 0.

see the folliwing SQL script..

SQL> select emp_id, emp_name, mobile from emp;

In this script, if the employee doesnt have any mobile number entered into the database, this query will return a NULL value (NO value) for the column Mobile.
Example output:

EMP_ID EMP_NAME MOBILE
------- ---------- --------
101 JOHN

In this case the MOBILE number of JOHN is not entered, so no value is retrieved for that field.

you can rewrite the SQL script as
SQL> select emp_id, emp_name, NVL(mobile, 'Not Entered');

In this Case the output will be
EMP_ID EMP_NAME MOBILE
------- ---------- --------
101 JOHN Not Entered

NVL( ) function checks whether the value is null or not. If the value is null, then it will return string mentioned.

Hope this clarifies....

Arun
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #9 (permalink)  
Old 04-28-2007, 11:08 AM
Junior Member
 
Join Date: Apr 2007
Posts: 1
prem.ranjan is on a distinguished road
anser of null

Quote:
Originally Posted by ashlee View Post
I want to know what is the value of NULL in oracle.Is this equal to zero, or is it equal to spaces or any junk value.
NULL is nothing but a character data type with zero lenth string.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #10 (permalink)  
Old 06-12-2007, 09:25 AM
Junior Member
 
Join Date: Jun 2007
Posts: 8
psiva_exforsys is on a distinguished road
In oracle NULL is not equal to any one (NULL or any number). In oracle NULL value stored in empty in database table. but internally it has some alpha numeric value.

Regards,
Siva.P
Bangalore
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools

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

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


Similar Threads

Thread Thread Starter Forum Replies Last Post
comp.lang.c Answers (Abridged) to Frequently Asked Questions (FAQ) Steve Summit Tech FAQ 0 06-15-2004 06:00 AM
comp.lang.c Answers (Abridged) to Frequently Asked Questions (FAQ) Steve Summit Tech FAQ 0 06-01-2004 06:01 AM
comp.lang.c Answers to Frequently Asked Questions (FAQ List) Steve Summit Tech FAQ 0 06-01-2004 06:00 AM
comp.lang.c Answers (Abridged) to Frequently Asked Questions (FAQ) Steve Summit Tech FAQ 0 05-15-2004 06:00 AM
Apple II Csa2 FAQs: Telecom Hardware & Transfers, Part 20/25 rubywand@swbell.net Tech FAQ 0 04-04-2004 07:29 AM


All times are GMT -4. The time now is 10:58 PM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0
Copyright 2004 - 2007 Exforsys Inc. All rights reserved.