Search
 
SCRIPT & CODE EXAMPLE
 

SQL

TSQL GET ALL COLUMNS IN TABLE

/*Get all columns from a table (sql server)*/
SELECT *
FROM INFORMATION_SCHEMA.COLUMNS
WHERE TABLE_NAME = 'table name';
Comment

get all columns from table sql

SELECT
  	TABLE_NAME
FROM
  	INFORMATION_SCHEMA.TABLES
Comment

get all columns in a table sql

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

PREVIOUS NEXT
Code Example
Sql :: sql server reset id 
Sql :: service postgres status 
Sql :: find column in all stored procedures sql server 
Sql :: psql drop column 
Sql :: oracle sql drop sequence 
Sql :: oracle create directory 
Sql :: mysql alter column default 
Sql :: how to get non integer value in sql 
Sql :: oracle finding duplicate records 
Sql :: oracle table privileges 
Sql :: oracle list columns schema 
Sql :: how to get yesterday date in mysql 
Sql :: get all tables postgres 
Sql :: Mysql Case sum 
Sql :: postgres remove database 
Sql :: how to install psql in ubuntu 
Sql :: mysql users and privileges list 
Sql :: see mysql users ubuntu 
Sql :: mysql show table character set 
Sql :: created at and updated at in mysql 
Sql :: mysql show processlist full query 
Sql :: how to check when a stored procedure was last modified in sql server 
Sql :: drop foreign key 
Sql :: sql server alter column 
Sql :: how to get current mysql version 
Sql :: Sql query to force the database to be drop 
Sql :: alter sequence set current value oracle 
Sql :: postgres drop column if exists 
Sql :: mysql date between two dates 
Sql :: oracle current timestamp 
ADD CONTENT
Topic
Content
Source link
Name
7+3 =