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

It will raise error ora-1439 column to be modifiedy must be
empty to change datatype.

Is This Answer Correct ?    26 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is oracle and pl sql?

827


Define join and name different types of joins?

712


what is data manipulation language? : Sql dba

699


can sql servers linked to other servers like oracle? : Sql dba

749


What are the two types of exceptions.

816






what is union, minus and interact commands? : Sql dba

858


What are the popular database management systems in the it industry?

721


what are the non-standard sql commands supported by 'mysql'? : Sql dba

772


Can dml statements be used in pl/sql?

773


what is rdbms? : Sql dba

758


What is a unique constraint?

806


Which column of the user triggers data dictionary view displays the database event that will fire the trigger?

771


What are the different dml commands in sql?

759


What pl/sql package consists of?

832


What is the difference between count 1 and count (*) in a sql query?

663