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

what is a database? : Sql dba

601


Can we join two tables without common column?

505


What is sorting in sql?

496


How does postgresql compare to mysql?

571


Can a foreign key be null?

579






What is the purpose of cursors in pl/sql?

631


What are the set operators in sql?

545


What does where 1 1 mean in sql?

535


Which is better cte or subquery?

534


How to move files from one directory to another in pl sql?

635


How many postgresql users are there, worldwide?

569


What is dba in sql? : SQL DBA

525


Can you call pl/sql package functions from within a fast formula?

560


What is sql key?

508


what are all types of user defined functions? : Sql dba

538