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

define join and explain different type of joins? : Sql dba

542


What does 0 mean in sql?

523


What is the difference between truncate and drop statements?

569


Which is faster truncate or drop?

550


How do I save a sql query?

539






What is the difference between function and procedure in pl/sql?

529


What is AUTH_ID and AUTH_USER in pl/sql ?

1681


How to rename a column in the output of sql query?

527


Does mysql_real_escape_string prevent sql injection?

533


How does sql*loader handles newline characters in a record? : aql loader

580


what does it mean to have quoted_identifier on? What are the implications of having it off? : Sql dba

519


What does plv msg allows you to do?

665


What is an intersect?

643


What is primary key sql?

532


What are the ddl commands?

527