-- MySQL
SELECT *
FROM INFORMATION_SCHEMA.COLUMNS;
-- SQL Server (possible solution)
SELECT *
FROM SYS.COLUMNS;
-- Oracle
SELECT *
FROM ALL_TAB_COLS; -- (If you only want user-defined columns)
-- ALL_TAB_COLS : only user-defined columns
-- ALL_TAB_COLUMNS : both user-defined AND system columns
-- You can select data from a table using a SELECT statement.
-- Select all columns from table:
SELECT *
FROM example_table;
SELECT * FROM MyTable WHERE COLLATE(Col1, Col2, Col3, Col4......) IS NULL
select * from <table-name>;