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 top in tsql? : Transact sql
What does a pl/sql package consist of?
What are aggregate and scalar functions?
what is a composite key ? : Sql dba
What is flag in sql?
how to implement one-to-one, one-to-many and many-to-many relationships while designing tables? : Sql dba
How to use sql statements in pl/sql?
Can a trigger call a stored procedure?
Is mariadb nosql?
How do I trace sql profiler?
What is the use of function "module procedure" in pl/sql?
Is natural join and inner join same?
What is the difference between cross join and natural join?
Explain what is rdbms?
What are triggers in sql?