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 / sathish p
We cant change column datatype while the column having
values.. Bcos error will come when u run the Alter table
modify statement...
| Is This Answer Correct ? | 5 Yes | 1 No |
Post New Answer View All Answers
What are the ddl commands?
Can a table contain multiple foreign key’s?
Is delete faster than truncate?
What is an intersect?
Can we create view in stored procedure?
What is clause?
What is server name sql?
How subquery works in sql?
What is an emotional trigger?
what are the limitations of mysql in comparison of oracle? Mysql vs. Oracle. : Sql dba
What is loop in pl sql?
Are subqueries faster than joins?
what happens when the column is set to auto increment and you reach the maximum value for that table? : Sql dba
What is mutating error?
What is the difference between drop and truncate commands?