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 happens when the column is set to auto increment and you reach the maximum value for that table? : Sql dba
what is the difference between blob and text? : Sql dba
What are database links used for?
Is truncate ddl or dml?
How exception handling is done in advance pl/sql?
What is the difference between union and union all command?
What is the difference between execution of triggers and stored procedures?
How much does sqlite cost?
what are the advantages a stored procedure? : Sql dba
What are the syntax and use of the coalesce function?
Can we create view in stored procedure?
How do I create a sql database?
What is a database event trigger?
What do you mean by rowid?
What does count (*) do in sql?