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

It won't work coz number can't datatype can't be changed to
varchar. If data does not exits then its work fine.

Is This Answer Correct ?    2 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Is left join faster than inner join?

607


Write a unique difference between a function and a stored procedure.

523


What is index example?

547


What are the benefits of pl sql?

518


Can we insert in view in sql?

558






What does rownum mean in sql?

546


what is the difference between primary key and unique key? : Sql dba

518


Do prepared statements prevent sql injection?

521


What is the difference between sum and count in sql?

514


How to look at the current sql*plus system settings?

598


What is pl sql commands?

551


How to process query result in pl/sql?

552


What are conditional predicates?

577


How you can copy a file to file content and file to pl/sql table in advance pl/sql?

612


What are the two different parts of the pl/sql packages?

553