Which data type doesn't allow null data type?
Answers were Sorted based on User's Feedback
Answer / shailesh
First of all the way this question is asked is totally wrong. The learner may have to ask which data type does not allow null values.
All data types will allow to insert null values unless the Primary Key or Not Null constraint is defined on a column.
Is This Answer Correct ? | 2 Yes | 0 No |
Answer / rajesh
The first answer is wrong, because 'NULL' is string its not null.
If u give null in insert query as second parameter the row will be inserted.
Is This Answer Correct ? | 1 Yes | 1 No |
Answer / nanne saheb c
Can't insert NULL value in DATE data type. Please find the below practical as example.
CREATE TABLE Example(
name VARCHAR(30),
regist DATE,
PRIMARY KEY(name)
);
INSERT INTO Example VALUES ('anyname','NULL');
ORA-01841: (full) year must be between -4713 and +9999, and not be 0
Is This Answer Correct ? | 3 Yes | 10 No |
Can a table contain multiple foreign key’s?
Why do we use sqlite?
How does one use sql*loader to load images, sound clips and documents? : aql loader
how to retrieve the top 3 salaries of the table using rownum
what is the different between now() and current_date()? : Sql dba
What is a database trigger ? Name some usages of database trigger ?
how to calculate expressions with sql statements? : Sql dba
what is the difference between the query and corelated query
8 Answers HSBC, IBM, TCS, Xenosoft,
What is difference between triggers and stored procedures. And advantages of SP over triggers ?
How to sort the rows in sql.
What is pl/sql tables?
What are the different operators available in sql?