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 schema means?
How does postgresql compare to mysql?
What is sql character function?
How do I turn a list into a table?
What is trigger in sql?
Is sql low level language?
Does sqlite need a server?
what is a table called, if it has neither cluster nor non-cluster index? What is it used for? : Sql dba
What are packages in pl sql and also explain its advantages?
What is an implicit commit?
What packages(if any) has oracle provided for use by developers?
What is the execution plan in sql?
What pl/sql package consists of?
What does sql stand for?
What is the maximum database size for sql express?