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...

Create table emp
(id number(9), name varchar2(20),salary
number(9,2));
The table has 100 records after table created.Now i nee to
change id's Datatype is to be Varchar2(15). now

Alter table emp modify(id varchar2(15),name varchar2(20),
salary number(9,2));

Whether it will work or returns error? post answer with
explanation.

Answer Posted / shailesh j

If column contains data then we can only modify size of
column without changing its data type. But if the column is
empty then we can modify its size as well data type.

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is trigger in flip flop?

1063


How do I create an index in word?

1088


Can a composite key be null?

1047


Which data type is a composite type?

1043


How can you create an empty table from an existing table?

1133


What is the need of a partition key?

1037


Can you have more than one trigger on a table?

1051


The select into statement is most often used to create backup copies of tables or for archiving records?

1124


Is left join inner or outer by default?

1080


How many triggers can be applied on a table?

995


What is mdf ldf and ndf?

1065


Can triggers stop a dml statement from executing on a table?

1164


how to drop an existing view in mysql? : Sql dba

1115


Can we insert in sql function?

1142


What is data definition language?

1141