Created
July 10, 2015 08:15
-
-
Save alexmnv/6d79c990367796c76e81 to your computer and use it in GitHub Desktop.
Postgresql, cast inet to bigint (ip to integer)
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
SELECT (ip - '0.0.0.0'::inet) as ip_integer |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment