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

It will not work,

If u have data in a table and u have to change data type
number to varchar2 then it will gives error, If u change
varchar2(100) column to char(200) it will work,
The number to varchar2 or varchar2 to number will not work
when u have data in table.

Is This Answer Correct ?    0 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is input buffer in sql*plus?

1235


What is field delimiter?

1054


Is sql a dbms?

1022


What is %s in sql?

1044


How many databases can sql express handle?

992


What are sql indexes?

1005


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

1021


Write a query to find the names of users that begin with "um" in sql?

1007


What is full form of rtm?

1014


how to escape special characters in sql statements? : Sql dba

1046


where are cookies actually stored on the hard disk? : Sql dba

1037


What packages are available to pl/sql developers?

1071


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

1084


Can you join a table to itself?

1144


Why self join is used in sql?

986