ORACLE DATABASE INTERVIEW QUESTIONS

Course:Oracle
Chapter:Chapter 5 - DDL (Data Definition Language)
Questions Count:10
1

What is a DEFAULT constraint in Oracle, and why is it used?

Explanation:
2

How do you define a DEFAULT value for a column when creating a table?

Explanation:
3

What happens if you insert a row without specifying a value for a column that has a DEFAULT constraint?

Explanation:
4

Can you provide an example of using a function as a DEFAULT value for a column?

Explanation:
5

How can you add a DEFAULT constraint to an existing column in a table?

Explanation:
6

How do you remove a DEFAULT constraint from a column?

Explanation:
7

How do DEFAULT constraints interact with NOT NULL constraints in Oracle?

Explanation:
8

Can you use expressions as default values in Oracle? Provide an example?

Explanation:
9

What is the behavior of DEFAULT constraints when inserting rows using INSERT INTO ... SELECT statements?

Explanation:
10

Explain how to use DEFAULT constraints in combination with other constraints to enforce business rules. Provide an example?

Explanation: