
- Forum
- Database
- Oracle Database
- Value of NULL
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 equal ...
-
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.
-
12-11-2006, 06:12 AM #2
- Join Date
- Nov 2006
- Location
- Bangalore, India
- Answers
- 16
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
-
12-12-2006, 11:09 PM #3
- Join Date
- Dec 2006
- Answers
- 6
hi,
Its just a empty thing............ thts all
-
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?
-
hai
Null is not a Zero or any number ,it is a blank space
-
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?
-
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.
-
03-06-2007, 07:04 AM #8
- Join Date
- Nov 2006
- Location
- Bangalore, India
- Answers
- 16
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
-
04-28-2007, 12:08 PM #9
- Join Date
- Apr 2007
- Answers
- 1
-
06-12-2007, 10:25 AM #10
- Join Date
- Jun 2007
- Answers
- 8
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
-
Sponsored Ads

Reply With Quote






