Oracle not null - oracle tutorial - sql tutorial
Learn oracle - oracle tutorial - Oracle not null - oracle examples - oracle programs
What is Oracle NOT NULL ?
- The Oracle NOT NULL keyword defines that table must have a column that can never be zero or null
Syntax:
Syntax:
Example: Not null:
- CREATE TABLE statement is used to create a new table in oracle database and ‘wikitechypm’ is the created table name.
- In this statement, NOT NULL constraint is used and applied for pm_Id column.
- After that click on the RUN button for executing the queries
- After clicking the run button, the table has been created successfully
- INSERT statement is used for inserting the required values in the created columns in the table
- After that click on the RUN button for executing the queries
- After clicking the run button, the table has been inserted successfully.
- SELECT statement is used to select all the data from created table.
- After that click on the RUN button for executing the queries.
- After clicking the run button, the table has been selected successfully.