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 / subbarayulu
It Will not work properly. when ever the table with data
user can't chage the column's datatype. It allows to
increase the size of the data type only.
| Is This Answer Correct ? | 14 Yes | 2 No |
Post New Answer View All Answers
What are sql queries used for?
How many sql databases can you have on one server?
Which query operators in sql is used for pattern matching?
what are the different type of sql's statements ? : Sql dba
Explain architecture of sql server notification services?
What is not null in sql?
What are the different types of tables in sql?
How can you fetch first 5 characters of the string?
What does joining a thread mean?
how to decrement dates by 1 in mysql? : Sql dba
Can there be 2 primary keys in a table?
How to avoid using cursors?
What is the requirement of self-join?
what is bcp? When is it used?
What are the two virtual tables available at the time of database trigger execution?