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 are all different types of collation sensitivity?
How to run sql functions in pl/sql?
Is it possible to sort a column using a column alias?
What is the usage of when clause in trigger?
what is union? : Sql dba
What is sql character function?
Explain lock escalation? : Transact sql
what are the authentication modes in sql server? : Sql dba
What is sql engine in oracle?
Can we join two tables without common column?
What is the use of function in sql?
What is varray in pl sql?
Is stored procedure faster than query?
What are different types of keys?
What are the different datatypes available in PL/SQL?