Check out example codes for "sql query to get column data type in sql". It will help you in understanding the concepts better.

Code Example 1

SELECT DATA_TYPE 
FROM INFORMATION_SCHEMA.COLUMNS
WHERE 
     TABLE_NAME = 'yourTableName' AND 
     COLUMN_NAME = 'yourColumnName'

Learn ReactJs, React Native from akashmittal.com