“SQL Server Get Type of Column” Respostas de código

SQL Server Get Type of Column

SELECT 
    COLUMN_NAME, 
    DATA_TYPE, 
    CHARACTER_MAXIMUM_LENGTH AS MAX_LENGTH, 
    CHARACTER_OCTET_LENGTH AS OCTET_LENGTH 
FROM INFORMATION_SCHEMA.COLUMNS 
WHERE TABLE_NAME = 'table_name' 
AND COLUMN_NAME = 'column_name';
otmane smiri

Obtenha tipos de coluna SQL Server

SELECT DATA_TYPE 
FROM INFORMATION_SCHEMA.COLUMNS
WHERE 
     TABLE_SCHEMA = 'yourSchemaName' AND
     TABLE_NAME   = 'yourTableName' AND 
     COLUMN_NAME  = 'yourColumnName'
otmane smiri

Respostas semelhantes a “SQL Server Get Type of Column”

Perguntas semelhantes a “SQL Server Get Type of Column”

Mais respostas relacionadas para “SQL Server Get Type of Column” em Sql

Procure respostas de código populares por idioma

Procurar outros idiomas de código