Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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


Please Help Members By Posting Answers For Below Questions

What schema means?

884


How does postgresql compare to mysql?

1030


What is sql character function?

1067


How do I turn a list into a table?

953


What is trigger in sql?

1083


Is sql low level language?

1013


Does sqlite need a server?

1042


what is a table called, if it has neither cluster nor non-cluster index? What is it used for? : Sql dba

970


What are packages in pl sql and also explain its advantages?

1027


What is an implicit commit?

1048


What packages(if any) has oracle provided for use by developers?

5800


What is the execution plan in sql?

1016


What pl/sql package consists of?

1074


What does sql stand for?

986


What is the maximum database size for sql express?

1019