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 / subbarayulu
It Will not work properly. when ever the table with data
user can't chage the column's datatype. It allows to
increase the size of the data type only.
| Is This Answer Correct ? | 14 Yes | 2 No |
Post New Answer View All Answers
What are the key differences between SQL and PL SQL?
What are the different types of joins in sql?
Explain the insert into statements in sql?
What are the 3 types of behavioral triggers?
Can function return multiple values in sql?
How do we accept inputs from user during runtime?
How do I run sql?
Explain lock escalation? : Transact sql
How do I make sql search faster?
How do I install sql?
What are the uses of sysdate and user keywords?
Is primary key always clustered index?
Explain the the update statement in sql?
how to rename an existing table in mysql? : Sql dba
What is a database? Explain