With the help of below query, we can get the data type of a column:-
SELECT TABLE_NAME
, COLUMN_NAME
, DATA_TYPE
, CHARACTER_MAXIMUM_LENGTH
FROM INFORMATION_SCHEMA.COLUMNS
WHERE COLUMN_NAME LIKE '%<Column Name>%'
follow over facebook @ "SQL-Horizons"
No comments:
Post a Comment