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 / shailesh j
If column contains data then we can only modify size of
column without changing its data type. But if the column is
empty then we can modify its size as well data type.
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
What is the maximum size of sqlite database?
What is record variable?
What is the difference between local and global temporary table?
what is foreign key? : Sql dba
What is consistency?
explain access control lists. : Sql dba
What is information schema in sql?
What are the most important ddl statements in sql?
When you have to use a default "rollback to" savepoint of plvlog?
What is full join?
What is sql integrity?
What are the different parts of a package?
Is oracel sql developer written in java?
What is trigger in pl sql?
What are the various restrictions imposed on view in terms of dml?