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 are transaction and its controls?
Can you call pl/sql package functions from within a fast formula?
Can we write dml inside a function in sql server?
What is java sql drivermanager?
Do prepared statements prevent sql injection?
what are set operators in sql? : Sql dba
Show the cursor attributes of pl/sql.
Which query operators in sql is used for pattern matching?
Why sql query is slow?
How can a function retun more than one value in oracle with proper example?
What is on delete restrict?
How do you create a unique index?
How many types of primary keys are there?
How do I find duplicates in sql?
what is difference between delete and truncate commands? : Sql dba