Answers for "sql data type of query"

SQL
0

checking data type in sql server

SELECT COLUMN_NAME,
       DATA_TYPE,
       IS_NULLABLE,
       CHARACTER_MAXIMUM_LENGTH,
       NUMERIC_PRECISION,
       NUMERIC_SCALE
FROM INFORMATION_SCHEMA.COLUMNS
WHERE TABLE_NAME='your_table_name';
Posted by: Guest on June-27-2021
0

sql data type of query

DECLARE @query nvarchar(max) = 'select 12.1 / 10.1 AS [Column1]';
EXEC sp_describe_first_result_set @query, null, 0;
Posted by: Guest on March-16-2022

Code answers related to "sql data type of query"

Code answers related to "SQL"

Browse Popular Code Answers by Language