Answers for "use all columns in table"

SQL
0

sql all columns

-- 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
Posted by: Guest on May-15-2020
0

read all columns of a table sql

/* To retreive the column names of table using COLUMN_NAME */
SELECT * FROM INFORMATION_SCHEMA.COLUMNS WHERE TABLE_NAME = N'table_name_here'
Posted by: Guest on September-26-2021

Code answers related to "use all columns in table"

Code answers related to "SQL"

Browse Popular Code Answers by Language