IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Does unique key allow more than one null value's


IBM Mainframe Forums -> DB2
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
lal_arun_272

New User


Joined: 09 Oct 2006
Posts: 31
Location: Bangalore

PostPosted: Fri Oct 27, 2006 12:52 pm
Reply with quote

Hi

If we defined one of table column as unique key. Does this column allow more than one null value's in that ??.

I got confused with below points ..in "In DB2 null is not equle to null"

So does it unique can have more than one null value's ??

Please help me to understand this

Thanks
Arunlal
Back to top
View user's profile Send private message
paresh.ojha

New User


Joined: 21 Sep 2006
Posts: 17

PostPosted: Fri Oct 27, 2006 1:17 pm
Reply with quote

NULL value means the value is undefined. NULL is not eqal to anything even NULL != NULL. So if you have any field in a table with NULL value you cant select the row with SELECT * FROM TBLNAME where FIELD = NULL rather than it should be SELECT * FROM TBLNAME WHERE FIELD IS NULL.

Hope this will help you.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> DB2

 


Similar Topics
Topic Forum Replies
No new posts Null values are considered in Total c... DFSORT/ICETOOL 6
No new posts the system or user abend SF0F R=NULL COBOL Programming 0
No new posts Any JCL or VSAM Utility to get number... JCL & VSAM 1
No new posts Uploading from desktop, a CSV file, s... DB2 2
No new posts Can we Insert duplicates in Primary U... DB2 2
Search our Forums:

Back to Top