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
explain advantages of myisam over innodb? : Sql dba
What is multiple columns?
What is trigger explain with example?
Is progress software supports to ( pl/sql )?
Mention what plvcmt and plvrb does in pl/sql?
Is it possible to create startup or shutdown trigger for on-schema?
What is scalar data type in pl sql?
what are the differences between get and post methods in form submitting. Give the case where we can use get and we can use post methods? : Sql dba
What are % type and % rowtype?
What is AUTH_ID and AUTH_USER in pl/sql ?
How do I truncate a word?
What is difference between cursor and trigger?
What are the advantages of stored procedure?
What is parameter substitution in sql?
What is function and procedure in pl sql?