Is there a SQL statement that can return the type of a column in a table?
Using SQL Server:
SELECT DATA_TYPE FROM INFORMATION_SCHEMA.COLUMNS WHERE TABLE_SCHEMA = 'yourSchemaName' AND TABLE_NAME = 'yourTableName' AND COLUMN_NAME = 'yourColumnName'
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With