Search
 
SCRIPT & CODE EXAMPLE
 

SQL

sql select column names

/* How to select the column names in SQL*/

SELECT Column_name
FROM INFORMATION_SCHEMA.COLUMNS
WHERE TABLE_NAME = N'your_table_name'
/* Just change the "your_table_name" ↑ to the name of your table */
Comment

How to View column names of a table in SQL

DESCRIBE Table_Name;

OR 

DESC Table_Name;
Comment

show column names in sql table

-- sql server 
sp_columns feeAgreement
-- or
SELECT * FROM INFORMATION_SCHEMA.COLUMNS WHERE TABLE_NAME = N'feeAgreement'
Comment

get table column names sql

SELECT      COLUMN_NAME AS 'ColumnName'
FROM        INFORMATION_SCHEMA.COLUMNS 
WHERE 
TABLE_NAME LIKE '%assembly_armatureassy_tbl%' 
and COLUMN_NAME LIKE '%supplied%'
Comment

PREVIOUS NEXT
Code Example
Sql :: oracle columns in all_tables 
Sql :: finding duplicate column values in table with sql 
Sql :: postgresql blocked on mac 
Sql :: sql list all databases 
Sql :: wilayah indonesia database 
Sql :: postgresql db owner change 
Sql :: mysql grant all privileges to a user 
Sql :: mysql unix timestamp to date 
Sql :: query to list all tables in sql database 
Sql :: alter user password postgres 
Sql :: postgres add not null to existing column 
Sql :: postgresql truncate cascade restart identity 
Sql :: oracle list functions 
Sql :: how to check username in mysql command line 
Sql :: convert_tz mysql 
Sql :: how to unlock table in mysql 
Sql :: mysql where one year ago 
Sql :: mysql concatenate two columns into one 
Sql :: oracle first day of last year 
Sql :: insert column with default value in sql 
Sql :: psql view enum values 
Sql :: mysql not supported auth mode 
Sql :: postgresql alter column nullable 
Sql :: get table column names sql ssms 
Sql :: describe table mysql 
Sql :: oracle list tables 
Sql :: mysql add column default value 
Sql :: monthname sql 
Sql :: postgres truncate with cascade 
Sql :: sql server alter table add column datetime default current_timestamp 
ADD CONTENT
Topic
Content
Source link
Name
7+1 =