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 is the purpose of the primary key?
Which table is left in join?
how to create a new table in mysql? : Sql dba
What is difference between db2 and sql?
What is the difference between clustered and non-clustered index in sql?
Define commit?
What is lookup table in sql?
How do I run a sql query?
How do you optimize a stored procedure in sql?
How to rename a table?
Is it possible to create startup or shutdown trigger for on-schema?
explain primary keys and auto increment fields in mysql : sql dba
what is meant by urlencode and urldocode? : Sql dba
How do you update a table in sql?
What is the location of pre_defined_functions.