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 to download oracle sql developer?
What is a dynamic query?
How do I view an execution plan in sql?
What is autocommit sql?
How do I create a memory optimized filegroup?
What is your daily office routine?
What is rownum and rowid?
What type of database is cloud sql?
what are all the common sql function? : Sql dba
What is the difference between sql, mysql and sql server?
what are the other commands to know the structure of table using mysql commands except explain command? : Sql dba
What are two statement types in sql?
What are different categories of sql commands?
What is trigger types of trigger?
Can a table contain multiple foreign key’s?