If we have n no of columns in a table, can we add new
column in that table with not null constraint?
Answer Posted / chandan kumar
If table is empty (means no records are there) then we can
add the constraint.
alter table tablename add (col_name datatype not null)
| Is This Answer Correct ? | 6 Yes | 2 No |
Post New Answer View All Answers
How do I count records in sql?
what is cursor and its type, what is ref cursor write a syntax to pass ref cursor into procedure out fucntion and call the procedure
What is not equal in sql?
What is sql prepared statement?
Which one is faster ienumerable or iqueryable?
What are expressions?
Under what condition it is possible to have a page level lock and row lock at the same time for a query? : Transact sql
What are the different types of constraints?
What are stored procedures used for?
What is primary key and foreign key?
What is the difference between sql and t sql?
What is synonyms?
What mean sql?
Can a table contain multiple primary key’s?
What is the difference between sql and isql*plus?