Last active
August 29, 2015 13:55
-
-
Save gtallen1187/785a105f1f279f954624 to your computer and use it in GitHub Desktop.
syntax for creating function in PG for isnumeric
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
CREATE FUNCTION isnumeric(text) RETURNS boolean AS ' | |
SELECT $1 ~ ''^[0-9]+$'' | |
' LANGUAGE 'sql'; | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment