Is it possible to drop a column in a table which contains only one column? How?

Answer Posted / eshwer

No, its not possible to drop all columns.


CREATE TABLE T2(A NUMBER(2));
table T2 created.

alter table
T2
drop column
A;



Error report:
SQL Error: ORA-12983: cannot drop all columns in a table
12983. 00000 - "cannot drop all columns in a table"
*Cause: An attempt was made to drop all columns in a table.
*Action: Make sure at least one column remains in the table after
the drop column operation.

SELECT * FROM T2;

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain the difference between $ORACLE_HOME and $ORACLE_BASE.

7153


Explain the payment term in ar. : oracle accounts receivable

840


while creating requisitions i am unable to see the list of organisation can anyone help me out ?

1920


hi iam kavya, i completed Oracle11i(finance module), i do not know how to face the interview questions please adivese me

1975


HOW TO SAVE UNIVERSES AND DOCUMENTS IN THE REPOSITORY?

1807


What is the difference between conversions and interfaces? : oracle accounts receivable

874


What is the difference between oracle media recovery and crash recovery?

878


What are the advantages of operating a database in ARCHIVELOG mode over operating it in NO ARCHIVELOG mode in Oracle?

842


what are all the conversion and interfaces in GL,AP,AR,HRMS with example? otherwise send send link for these

2045


What are the different tools available for hot backups in Oracle? Is it preferable to take it manually all the time or it depends on the size of the database?

947


How I can load an image into image item on Forms. I want to know about built-ins and procedure. and also code for it.

1836


Differentiate between earned discounts and unearned discounts? : oracle accounts receivable

896


How would you determine what sessions are connected and what resources they are waiting for?

1837


How to clone the database using RMAN back

1818


which one is currently in used software cmpanies.

1862