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 / reddi
It won't work coz number can't datatype can't be changed to
varchar. If data does not exits then its work fine.
| Is This Answer Correct ? | 2 Yes | 2 No |
Post New Answer View All Answers
how do you tune the slow running queries in oracle db , explain the methodology
What is use of term?
how can we transpose a table using sql (changing rows to column or vice-versa) ? : Sql dba
write an sql query to get third maximum salary of an employee from a table named employee_table. : Sql dba
what are the difference between clustered and a non-clustered index? : Sql dba
Explain the uses of database trigger.
what is denormalization. : Sql dba
Can we delete column in sql?
What are different functions in sql?
What is a join?
Why is sql*loader direct path so fast?
what is query cache in mysql? : Sql dba
Is oracel sql developer written in java?
What is percent sign in sql?
What is a sql select statement?