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 / nilesh
It will not work,
If u have data in a table and u have to change data type
number to varchar2 then it will gives error, If u change
varchar2(100) column to char(200) it will work,
The number to varchar2 or varchar2 to number will not work
when u have data in table.
| Is This Answer Correct ? | 0 Yes | 2 No |
Post New Answer View All Answers
Why we use join in sql?
What is rtm in testing?
how to increment dates by 1 in mysql? : Sql dba
What is dialect in sql?
Is full outer join same as cross join?
what is the difference between myisam static and myisam dynamic? : Sql dba
Is pl sql better than sql?
What is sql keyword?
Why does sql need a server?
How to rename a table?
does sql support programming? : Sql dba
What are the basic sql commands?
Mention what pl/sql package consists of?
What is identity column in sql server?
which operator is used in query for pattern matching? : Sql dba