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 / reddi
It won't work coz number can't datatype can't be changed to
varchar. If data does not exits then its work fine.
| Is This Answer Correct ? | 2 Yes | 2 No |
Post New Answer View All Answers
How to set up sql*plus output format in oracle?
What is where clause in sql?
What is the best partition size for windows 10?
Why stored procedure is faster than query?
Is natural join and inner join same?
What is sql resultset?
what is transaction? : Sql dba
Is sql a programming?
What's the procedure?
how to fetch common records from two tables? : Sql dba
What are the parts of a sql statement?
What is recursive stored procedure?
What are the advantages of sql? Explain
how to do backup entire database? : Transact sql
Can we commit inside a trigger?