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

It Will not work properly. when ever the table with data
user can't chage the column's datatype. It allows to
increase the size of the data type only.

Is This Answer Correct ?    14 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Mention what problem one might face while writing log information to a data-base table in pl/sql?

666


What is an intersect?

643


What is parameter substitution in sql?

519


Explain the difference between triggers and constraints?

512


What are stored procedures used for?

528






What is data type in sql?

550


How do I sort a table in sql?

587


Is json a nosql?

531


Why we use cross join?

536


What is update query?

542


What are the types of views in sql?

532


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

530


What is minus?

539


explain advantages of innodb over myisam. : Sql dba

636


How do I quit sql?

487