“Noms de colonne SQL Select” Réponses codées

Obtenez le nom de la colonne SQL Server

SELECT *
FROM INFORMATION_SCHEMA.COLUMNS
WHERE TABLE_NAME = N'Customers'
Joyous Jackal

Obtenez des colonnes de table de SQL

SELECT *
FROM INFORMATION_SCHEMA.COLUMNS 
WHERE TABLE_NAME = N'Customers' 
-- INFORMATION_SCHEMA is an ANSI-standard (American National Standard Institute) set of read-only views which provide information about all of the tables, views, columns, and procedures in a database
-- "N" defines the subsequent string (the string after the N) as being in unicode
CodeHelper

Obtenez des noms de colonne de table SQL SSMS

SELECT COLUMN_NAME
FROM INFORMATION_SCHEMA.COLUMNS
WHERE TABLE_NAME = 'Your Table Name'
ORDER BY COLUMN_NAME

-- IS_NULLABLE returns yes or no depending on null or not null
Chris PA

Noms de colonne SQL Select

/* 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 */
Dark Dotterel

Comment afficher les noms de colonne d'une table dans SQL

DESCRIBE Table_Name;

OR 

DESC Table_Name;
Delta Sierra

Réponses similaires à “Noms de colonne SQL Select”

Questions similaires à “Noms de colonne SQL Select”

Plus de réponses similaires à “Noms de colonne SQL Select” dans Sql

Parcourir les réponses de code populaires par langue

Parcourir d'autres langages de code