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
What is string data type in sql?
What is bitemporal narrowing?
What are the types of functions in sql?
What do you understand by case manipulation functions?
how to include comments in sql statements? : Sql dba
How do I create a memory optimized filegroup?
Why do we use joins in sql?
What is the use of pl/sql table?
which operator is used in query for pattern matching? : Sql dba
What is dml and ddl?
What is mutating trigger?
Which function is used to return remainder in a division operator in sql?
Which one is better sql or oracle?
What is a table in a database?
What is a behavioral trigger?