Interviews8 answers
Can we pass null value in Unique Id
8 Answers
only one null we can insert
Shashidhar RPosted Oct 26, 2024, 5:28 AM EDT
no
Shashidhar RPosted Oct 26, 2024, 5:27 AM EDT
One null value possible, more than that is not possible
Nagaraju KodavallaPosted Aug 29, 2021, 8:30 AM EDT
Yes
krunal pandePosted May 8, 2021, 5:31 AM EDT
Yes, we can keep null in unique column if it is nullable. Null is also a unique reconrd in the column. However, you can have only one null record as one null is only unique for that column.
Rijwan AnsariPosted Apr 17, 2021, 2:01 AM EDT
Yes, we can.
The Unique constrain mainly use to restrict duplicate values insertion and ensure that column has a unique value. It will not allow you to enter the duplicate NULL value in the column but allow you to insert a unique(Single) NULL value in the column.
Kirtesh ShahPosted Apr 7, 2021, 4:15 AM EDT
Yes You can .But only one Null value
Rahul PalPosted Mar 27, 2021, 12:33 AM EDT
Yes, But only once . Provided column value is nullable
Kiran MohantyPosted Mar 24, 2021, 8:58 AM EDT



