Created
March 2, 2020 13:13
-
-
Save Shuaib-8/4ca46b134805a78bb019a74fcc34d02f to your computer and use it in GitHub Desktop.
SQL determining data types sanity check
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- Get the column name and data type | |
SELECT column_name, data_type | |
-- From the system database information schema | |
FROM INFORMATION_SCHEMA.COLUMNS | |
-- For the customer table | |
WHERE table_name = <'table_name'>; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment