Can we use more than one null value for unique key?
Answer Posted / pratibha
u can insert multiple null values without ant error:
SQL> create table sab(name varchar2(10) unique);
Table created.
SQL> insert into sab values('&sab');
Enter value for sab:
old 1: insert into sab values('&sab')
new 1: insert into sab values('')
1 row created.
SQL> /
Enter value for sab:
old 1: insert into sab values('&sab')
new 1: insert into sab values('')
1 row created.
SQL> /
Enter value for sab:
old 1: insert into sab values('&sab')
new 1: insert into sab values('')
1 row created.
SQL> /
Enter value for sab:
old 1: insert into sab values('&sab')
new 1: insert into sab values('')
1 row created.
SQL> /
Enter value for sab:
old 1: insert into sab values('&sab')
new 1: insert into sab values('')
1 row created.
SQL> SQL> select count(*) from sab;
COUNT(*)
----------
5
| Is This Answer Correct ? | 10 Yes | 0 No |
Post New Answer View All Answers
How is use pl and sql?
write an sql query to get third maximum salary of an employee from a table named employee_table. : Sql dba
how would you get the current date in mysql? : Sql dba
what are the advantages a stored procedure? : Sql dba
What is the primary use of normalization?
What is composite primary key in sql?
What are reports usually used for?
What is a procedure in pl sql?
What are the events on which a database trigger can be based?
How do I find duplicates in the same column?
Explain the the update statement in sql?
Why stored procedures are faster than query?
How run sql*plus commands that are stored in a local file?
What is right join in sql?
Why stored procedure is better than query?