Created
May 10, 2016 15:03
-
-
Save seanbehan/146d74f580f1790aefbc00fb1c713ead to your computer and use it in GitHub Desktop.
find columns where the data is of float and non float type in postgres
This file contains hidden or 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
-- grab columns where the value is float type | |
select * from table_name where column_name ~ E'^[0-9\.]+\$'; | |
-- grab columns where the value is not float type | |
select * from table_name where column_name !~ E'^[0-9\.]+\$'; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment