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 / rinson
It will raise error ora-1439 column to be modifiedy must be
empty to change datatype.
| Is This Answer Correct ? | 26 Yes | 2 No |
Post New Answer View All Answers
Which tcp/ip port does sql server run?
what is denormalization. : Sql dba
How do I view tables in mysql?
what are dynamic queries in t-sql? : Transact sql
What are the advantages of sql?
Is it mandatory for the primary key to be given a value when a new record is inserted?
How do you explain an index number?
What are different types of statements supported by sql?
what are the maximum number of rows that can be constructed by inserting rows directly in value list? : Transact sql
How to rename a column in the output of sql query?
What are the rules to be applied to nulls whilst doing comparisons?
what is sql profiler? : Sql dba
What are the different ddl commands in sql?
Lookups are a key component in sql server integration services (ssis). Explain its purpose?
How do you take the union of two tables in sql?