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 to enter numeric values as hex numbers? : Sql dba
What is cte?
Can ddl statements be used in pl/sql?
what is view? : Sql dba
What is hibernate and its relation to sql?
How to move files from one directory to another in pl sql?
Why do we use view in sql?
Is sql a case sensitive language?
What is %type in sql?
Which is better join or subquery?
What is sqlservr exe?
What is the difference between the repeatable read and serializable isolation levels? : Transact sql
What is varchar used for?
What is pl sql record in oracle?
What is identity column in sql server?