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
How to prepare for oracle pl sql certification?
Is postgresql a nosql database?
what are integrity rules?
What are the types of subqueries?
what is uncommittable transactions? : Transact sql
What are pl/sql cursor exceptions?
What are functions in sql?
What is join view in sql?
What are different functions in sql?
Define implicit and explicit cursors.
How to write a single statement that concatenates the words ?hello? And ?world? And assign it in a variable named greeting?
What is the difference between execution of triggers and stored procedures?
What schema means?
how is myisam table stored? : Sql dba
Explain exception handling in pl/sql?