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
how can we transpose a table using sql (changing rows to column or vice-versa) ? : Sql dba
How do you use collections in procedure to return the resultset?
What are the usages of sql?
Can a select statement fire a trigger?
What is foreign key and example?
what is sql in mysql? : Sql dba
What are literals in sql server?
Is sql port 1433 encrypted?
How do I upgrade sql?
What is the starting oracle error number? What is meant by forward declaration in functions?
Explain what is a database?
What is the usage of when clause in trigger?
How does a trigger work?
What are the built in functions of sql?
What is the difference between having clause and where clause?