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

It will work 100%.
becos. we are increasing the length. if we are decreasing
the length then it gives error.

Is This Answer Correct ?    3 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

how tsql statements can be written and submitted to the database engine? : Transact sql

527


Why is partition used in sql?

545


How do we accept inputs from user during runtime?

540


How do you drop a trigger?

539


What is cost in sql execution plan?

485






Explain what is sql*plus?

666


Why partition by is used in sql?

552


What is sql integrity?

577


Can you select everything, but 1 or 2 fields, without writer's cramp?

493


What is the usage of nvl function?

594


What are local and global Indexes and where they are useful.

923


What is the use of non clustered index?

526


what is a view? : Sql dba

631


what is the difference between a web-garden and a web-farm? : Sql dba

554


How to call shell script from pl sql procedure?

623