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 / lakshmanakumar
There should be error raised as below
ORA-01439: column to be modified must be empty to change
datatype
| Is This Answer Correct ? | 2 Yes | 1 No |
Post New Answer View All Answers
Is join and inner join the same?
Why use subqueries instead of joins?
What is cross join sql?
Is sql better than excel?
how to use in conditions? : Sql dba
what are the advantages of using stored procedures? : Sql dba
Is primary key always clustered index?
Is natural join and inner join same?
What is sql used for?
Why plvtab is considered as the easiest way to access the pl/sql table?
How to use distinct and count in sql query? Explain
Which constraints we can use while creating database in sql?
Which one is better sql or oracle?
Can there be more than one function with a similar name in a pl/sql block?
Can we commit in trigger?