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 primary key? : Sql dba
Which column of the user triggers data dictionary view displays the database event that will fire the trigger?
What is %type in pl sql?
What operators deal with null?
How to move files from one directory to another in pl sql?
What is keys and its types?
Can I learn sql in a week?
What are sql objects?
What are literals in sql server?
How many types of cursors are available in pl/sql?
what are the limitations of identity column? : Transact sql
How do you truncate?
What is normalisation in sql?
What are types of joins?
what is schema? : Sql dba