Is it possible to create a table without any column? If YES then how can I do it in oracle.
CREATE TABLE tab();
ORA-00904: : invalid identifier
CREATE TABLE tab(t INT); ALTER TABLE tab DROP COLUMN t;
ORA-12983: cannot drop all columns in a table
The construct with no column does not have any sense. If you need table as placeholder use DUAL
like:
SELECT 1 + 1 AS result
FROM dual;
A table is a collection of columns and rows. You need at least one column.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With