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 / lakshmanakumar

There should be error raised as below
ORA-01439: column to be modified must be empty to change
datatype

Is This Answer Correct ?    2 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are all types of user defined functions?

1137


Why do we use procedures in pl sql?

1075


What is the use of sql trace?

1003


what are the system privileges that are required by a schema owner (user) to create a trigger on a table?

1124


Is sql a oracle?

1022


Can primary key be changed?

953


What is the difference between null value, zero, and blank space?

1255


Why trigger is used in sql?

1016


What are the methods of filing?

992


How can we make an if statement within a select statement?

1068


What is sql server and ase?

1070


How do you declare a constant?

1016


What is the difference between the conventional and direct path loads? : aql loader

1473


Which is faster count (*) or count 1?

1088


Why is sharding used?

1060