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
What is pl sql in oracle?
What are the different sql commands?
Why do we use view in sql?
How do you rank data in sql?
What is data definition language?
what is table? : Sql dba
What does <> sql mean?
What are different clauses used in sql?
What is an alias command?
Explain the uses of a database trigger?
What are the different types of tables in sql?
Is sql microsoft?
What does trigger mean in slang?
What is restrict in sql?
what is the difference difference between procedure and packages