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

It wo'nt work because if there is an data exist in
(id number(9)).You cannot modify if colmun is not empty.

Is This Answer Correct ?    15 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is vector point function?

560


what are the t string functions available in tsql? : Transact sql

540


How to Declare Fixed Length String Value In PL SQL

657


How to handle bulk data?

889


How to check if a column is nullable before setting to nullable?

580






Which command is used to delete a package?

576


How do we accept inputs from user during runtime?

540


what is the use of friend function? : Sql dba

537


Is microsoft sql free?

596


what are the security recommendations while using mysql? : Sql dba

576


What is range partitioning?

516


Why is the cursor important?

535


How can you tell the difference between an index and a view?

487


Can you join a table to itself?

539


How do I view tables in mysql?

538