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 / nzabin
SQL Error: ORA-01439: column to be modified must be empty to change datatype
01439. 00000 - "column to be modified must be empty to change datatype"
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What is varchar used for?
Describe sql comments?
What is data type in database?
Is natural join and inner join same?
What are all the different normalization?
what are myisam tables? : Sql dba
What is difference between sql and oracle?
What is an escape character in sql?
What are conditional predicates?
how to run 'mysql' commands from a batch file? : Sql dba
What is the difference between between and in condition operators?
How does one load ebcdic data? : aql loader
How do I start pl sql?
What plvcmt and plvrb does in pl/sql?
What is difference between sql function and stored procedure?