If we have n no of columns in a table, can we add new
column in that table with not null constraint?
Answer Posted / srinu
U r correct Chandan.But one thing,what is that is if the
table contains some data at that time syntax for adding new
column to that table with notnull constraint is....
alter table table_name add column_name datatype default
value constraint constraint_name not null;
if we want 2 know which columns have which constraints then
the syntax is
select column_name,constraint_type
from user_cons_columns
where table_name='EMP';
| Is This Answer Correct ? | 7 Yes | 1 No |
Post New Answer View All Answers
What is a crud api?
Is primary key an index?
Give the order of sql select?
what is the difference difference between procedure and packages
How to run sql*plus commands in sql developer?
List the ways to get the count of records in a table?
Why select is used in sql?
Can you rollback after commit?
What are pl sql procedures?
What is nested table in pl sql?
What is the maximum rows in csv?
Is pl sql different from sql?
What is a rank in sql?
What is sap sql?
how to calculate the difference between two dates? : Sql dba