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 a sql select statement?
How do I find sql profiler?
Mention what plvcmt and plvrb does in pl/sql?
What is the difference between the conventional and direct path loader? : aql loader
How many row comparison operators are used while working with a subquery?
What is multiple columns?
Can we declare a column having number data type and its scale is larger than pricesionex: column_name number(10,100),column_name numbaer(10,-84)
What is not in sql?
What is attribute indicator in pl sql?
how to include numeric values in sql statements? : Sql dba
How to Declare Fixed Length String Value In PL SQL
Explain select statements in sql?
Are pl sql variables case sensitive?
What version is sql?
What do you mean by dbms? What are its different types?