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


Please Help Members By Posting Answers For Below Questions

What is difference between pls_integer and integer?

707


in oracle 10g sw after compiling procedure how to pass parameter values ,if we (v_empid out number)how to give empid after successful compilation program.This site exact suitable for 10g with respect to question & answer same format , im trying sql browser & sql command prompt using exec procedure name & respective parameters.

1830


What is the difference between functions, procedures, and packages in pl/sql?

705


What is the difference between pl and sql?

732


What does plv msg allows you to do?

860






what are local and global variables and their differences? : Sql dba

712


How to write pl sql program in mysql command prompt?

709


Can sql developer connect to db2?

754


What is keys and its types?

747


What is difference between joins and union?

744


What are the various restrictions imposed on view in terms of dml?

690


How do you take the union of two tables in sql?

730


What are the commands used in sql?

735


What is nosql vs sql?

866


What is the use of primary key?

731