Search:     Advanced search
Browse by category:
C/C++   |   Java   |   Oracle/Database   |   SAP   |   ASP .NET   |   Mainframe-DB2   |   Freshers

Q: Explain the concept of NULL

Add comment
Views: 510
Votes: 2
Comments: 0

In SQL NULL means the value is unknown. This is not same as 0 or the empty string ''. To check if the value in a column is NULL we use the clause "IS NULL"
Select * from emp where sal IS NULL; This statement will return all records with salary as null. However the statement Select * from emp where sal = NULL will not return any records.

Function nvl  is used to replace the null value with some other value.

 

Others in this Category
document Q: What are logical databases? What are the advantages/disadvantages of logical databases?
document What is Index?
document Q: What is CYCLE/NO CYCLE in a Sequence ?
document Q: What are different normalization forms?
document What is CLR?
document What are Sparse Columns?
document What is Trigger?
document What is Data Compression?
document Q: What is normalization?
document How to rebuild Master Databse?
» More articles



RSS