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 / shailesh j
If column contains data then we can only modify size of
column without changing its data type. But if the column is
empty then we can modify its size as well data type.
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
If the application is running very slow? At what points you need to go about the database in order to improve the performance?
What is optimistic concurrency control? : Transact sql
What is cross join example?
Explain lock escalation? : Transact sql
what is the difference between clustered and non clustered index in sql? : Sql dba
how to extract a unit value from a date and time? : Sql dba
Is record in pl sql?
How do I copy a table in sql?
How many sql statements are used?
what is isam? : Sql dba
What is db journal file?
Is inner join same as self join?
What is full join in sql?
What is the usage of the distinct keyword?
Explain what is rdbms?