/*Get all columns from a table (sql server)*/
SELECT *
FROM INFORMATION_SCHEMA.COLUMNS
WHERE TABLE_NAME = 'table name';
SHOW COLUMNS FROM table_name
SELECT
TABLE_NAME
FROM
INFORMATION_SCHEMA.TABLES
-- 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
sp_columns feeAgreement
-- or
SELECT * FROM INFORMATION_SCHEMA.COLUMNS WHERE TABLE_NAME = N'feeAgreement'
-- You can select data from a table using a SELECT statement.
-- Select all columns from table:
SELECT *
FROM example_table;
SELECT * FROM contacts;
select * from <table-name>;