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

It Will not work properly. when ever the table with data
user can't chage the column's datatype. It allows to
increase the size of the data type only.

Is This Answer Correct ?    14 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What problem one might face while writing log information to a data-base table in pl/sql?

1066


What are the different types of dbms?

954


Mention what does plv msg allows you to do?

1053


Explain the difference between cursor declared in procedures and cursors declared in the package specification?

1058


How can I make sql query run faster?

960


How to avoid using cursors?

1039


What is a table in a database?

991


how to include numeric values in sql statements? : Sql dba

1039


Why partition by is used in sql?

969


how to select first 5 records from a table? : Sql dba

918


What's the difference between inner join and left join?

947


difference between anonymous blocks and sub-programs.

1079


What is difference between joins and union?

1043


what is the difference between ereg_replace() and eregi_replace()? : Sql dba

1072


how can you create an empty table from an existing table? : Sql dba

1076