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 / ramesh
It will work 100%.
becos. we are increasing the length. if we are decreasing
the length then it gives error.
| Is This Answer Correct ? | 3 Yes | 0 No |
Post New Answer View All Answers
What are the types of variables use in pl sql?
What are the types of index in sql?
How many primary keys can a table have?
what are different types of keys in sql?
What are synonyms in sql?
Can we use pl sql in mysql?
when is the use of update_statistics command? : Sql dba
What are pl/sql cursors?
Can we join two tables without common column?
How do you explain an index?
What is multiple partition?
Mention what are different methods to trace the pl/sql code?
what is uncommittable transactions? : Transact sql
How many types of triggers exist in pl/sql?
How do you write a complex sql query?