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

select table column name in sql

/**
You must have all privillage to access this, else it will denaid access :)
**/

SELECT COLUMN_NAME FROM INFORMATION_SCHEMA.COLUMNS WHERE TABLE_NAME = N'tableName';
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

get column name list sql

EXEC sp_columns 'Your Table Name'
Comment

PREVIOUS NEXT
Code Example
Sql :: sql get table last modified time 
Sql :: how to open closed port mysql in ubuntu 
Sql :: mysql select from outside 
Sql :: sql server roles and users 
Sql :: start mysql linux terminal 
Sql :: oracle view ddl 
Sql :: postgres get database encoding 
Sql :: sql primary key with multiple columns 
Sql :: uninstall mysql server ubuntu 
Sql :: importance of comment in mysql 
Sql :: oracle user quota on tablespace 
Sql :: oracle alter table add not null constraint 
Sql :: alter table change default 
Sql :: sqlserver create table from select 
Sql :: update set with inner join oracle 
Sql :: drop table if exists 
Sql :: view linked servers sql 
Sql :: postgresql where datetrunc month and year equal 
Sql :: alter table in mysql 
Sql :: how to add default constraint in mysql 
Sql :: date 3 months from today sql 
Sql :: SQLite order random 
Sql :: postgres list all roles 
Sql :: fetch first 5 characters of the string in sql 
Sql :: XOR in SQL Server 
Sql :: sql update from different table 
Sql :: sql server current date 
Sql :: dynamic sql invalid table name 
Sql :: sql in sublime 
Sql :: oracle all source 
ADD CONTENT
Topic
Content
Source link
Name
7+3 =