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

What is auto invoicing? Explain : oracle accounts receivable

607


What is Tax Categories?

1622


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

640


default triggers available for reports

1755


What view would you use to determine free space in a tablespace?

1769






Explain how to account for bank charges deducted from amount received against an invoice. : oracle accounts receivable

733


Why more redos are generated when the oracle database is in begin backup mode?

655


What is mrc and what is its use? : oracle accounts receivable

622


types of receipts and detail desription about recipts and tables effected by receipts?

1623


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.

1622


WHAT ARE TEMPLATES?EXPLAIN WHAT YOU HAVE CREATED?

1486


Give two methods you could use to determine what DDL changes have been made.

6009


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

660


HOW TO GET THE ORGANIZATION TO ORGANIZATION DETAILS INFORMATION IN THE INVENTORY MODULE.THE REQUIREMENT IS FROMORG TOORG FROMINV TOINV ..

1981


1.In a table Gender is a column in that male and female are the two data.In a single statement i have to modify all male to female and all female to male vice versa. 2.In a single query i need the count of male data,count of female and total count

16341