adspace
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
what are the advantages of sql ? : Sql dba
Hi am new to PLSQL & facing problems in writing code like in SP, Functions, so any one having some SP coding with in depth explanation please share with me my Email ID suvarnaatsuvarna@rediffmail.com Or taking tanning on this please do contact me
What is the current version of postgresql?
what is bcp? When does it used? : Sql dba
Can delete statement be rollbacked?
Can we rollback truncate?
Does group by remove duplicates?
how to escape special characters in sql statements? : Sql dba
Can we use distinct and group by together?
what is sql server agent? : Sql dba
What is the current version of sql?
what are all the common sql function? : Sql dba
Is inner join faster than left join?
what is schema? : Sql dba
what is dbms? : Sql dba