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

SQL Error: ORA-01439: column to be modified must be empty to change datatype
01439. 00000 - "column to be modified must be empty to change datatype"

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Which is better varchar or nvarchar?

735


What is on delete set null?

765


What is the difference between delete and truncate statement in sql?

683


Is pl sql still used?

684


What is the use of stored procedures?

707






What is meant by temporal data?

709


Explain character-manipulation functions?

836


How many tables can a sql database have?

710


What is exit statement?

744


What is crud diagram?

677


How do you rank data in sql?

680


Why do we use sqlite?

707


What is indexing oracle sql?

744


what is self join and what is the requirement of self join? : Sql dba

859


What are schema-level triggers?

757