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 / nzabin
SQL Error: ORA-01439: column to be modified must be empty to change datatype
01439. 00000 - "column to be modified must be empty to change datatype"
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What is the most common sql injection tool?
what does it mean to have quoted_identifier on? What are the implications of having it off? : Sql dba
Differences between Oracle 9i and 10g (Probably in terms of SQL and PL/SQL)?
How do I make my sql query run faster?
Can you inner join the same table?
What is the difference between delete, truncate and drop command?
What are the built in functions of sql?
Show how functions and procedures are called in a pl/sql block.
Explain the steps needed to create the scheduled job?
What is rank () in sql?
Why do we need databases?
What is a field in a database?
What is the difference between the implicit and explicit cursors?
What is data control language (dcl)?
How do I write a sql query in pgadmin 4?