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

What are the types of functions in sql?

567


What is type and rowtype in pl sql?

536


How do you write an index?

525


GLOBAL TEMPORARY TABLE over Views in advantages insolving mutating error?

2568


What does (*) mean in sql?

527






Which is faster subquery or join?

658


How global cursor can be declare with dynamic trigger ?

1746


what does myisamchk do? : Sql dba

555


Difference between truncate, delete and drop commands?

557


what are the 'mysql' command line arguments? : Sql dba

650


What are the two virtual tables available at the time of database trigger execution?

635


Can unique keys be null?

484


What does an inner join do?

558


What is the clause we need to add in function body to return variable?

538


What is the difference between having clause and where clause?

567