Using SQL Server:
SELECT DATA_TYPE
FROM INFORMATION_SCHEMA.COLUMNS
WHERE
TABLE_SCHEMA = 'yourSchemaName' AND
TABLE_NAME = 'yourTableName' AND
COLUMN_NAME = 'yourColumnName'
More Related Contents:
- How do you version your database schema? [closed]
- Designing a SQL schema for a combination of many-to-many relationship (variations of products)
- How do I change db schema to dbo
- How can I insert a new database record in the middle of an existing table?
- Convert text to system date format [duplicate]
- How to get a particular preceding value of a column in SQL [closed]
- Whats wrong in this sql query? It throws error [closed]
- How to select just the row in the second table?
- Update statement with inner join on Oracle
- SQL update from one Table to another based on a ID match
- What is the meaning of the prefix N in T-SQL statements and when should I use it?
- Is there any function in oracle similar to group_concat in mysql? [duplicate]
- SQL Joins Vs SQL Subqueries (Performance)?
- Check if a row exists, otherwise insert
- coalesce alternative in Access SQL
- Split column into multiple rows in Postgres
- Export SQL query data to Excel
- Spark sql queries vs dataframe functions
- Performance issue in using SELECT *? [duplicate]
- SQL SELECT to get the first N positive integers
- When to Denormalize a Database Design
- How to read the contents of an .sql file into an R script to run a query?
- SQL INNER JOIN syntax
- Select distinct from multiple fields using sql
- What is the most appropriate data type for storing an IP address in SQL server? [duplicate]
- How do MySQL views work?
- Using Raw SQL with Doctrine
- How to bulk insert only new rows in PostreSQL
- ORA-00933: SQL command not properly ended
- Update a table with data from another table