Search
 
SCRIPT & CODE EXAMPLE
 

SQL

How to View column names of a table in SQL

DESCRIBE Table_Name;

OR 

DESC Table_Name;
Comment

show column from sql server

select *
from INFORMATION_SCHEMA.COLUMNS
where TABLE_NAME='tableName'
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

get column name list sql

EXEC sp_columns 'Your Table Name'
Comment

PREVIOUS NEXT
Code Example
Sql :: sql command to show all tables 
Sql :: change mariadb to mysql xampp 
Sql :: mysql version 
Sql :: sql lag 
Sql :: oracle drop job if exists 
Sql :: Parsing XML IN SQL Server 
Sql :: sql row number in result set 
Sql :: Add a column with a default value to an existing table in SQL Server 
Sql :: postgresql remove new line from string 
Sql :: activate event scheduler mariadb 
Sql :: alter column set not null to null postgres 
Sql :: oracle partition table row count 
Sql :: date in oracle 
Sql :: copy data from one table to another mysql 
Sql :: sql cheatsheet 
Sql :: sql cast 
Sql :: sql replace single quote 
Sql :: sql formats 
Sql :: 11:04:35 PM [mysql] Error: MySQL shutdown unexpectedly. 11:04:35 PM [mysql] This may be due to a blocked port, missing dependencies, 
Sql :: mysql change value 
Sql :: influxdb list all tags for a measurement 
Sql :: check if value is null mysql 
Sql :: what is a query in sql 
Sql :: mysql case 
Sql :: How to insert data in mysql ? 
Sql :: mysql biginteger size 
Sql :: how to pass dynamic column name in sql query 
Sql :: query to find second highest salary 
Sql :: import mysql database command line linux 
Sql :: sql to array of objects 
ADD CONTENT
Topic
Content
Source link
Name
6+7 =