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
How many times can we commit in a loop?
How do I run a program in pl sql?
Can sql developer connect to db2?
What is pivot in sql?
How to fetch alternate records from a table?
What is 19 null in sql?
Can we rollback after truncate?
Does truncate table reset auto increment?
What is the best partition size for windows 10?
How many sql commands are there?
what is a database lock ? : Sql dba
Are pl sql variables case sensitive?
How to create your own reports in sql developer?
what is a primary key? : Sql dba
What are few of the schema objects that are created using PL/SQL?