Created
March 10, 2017 15:51
-
-
Save derwolfe/b917892855bf80fb31c4b86d8a31c496 to your computer and use it in GitHub Desktop.
cast array elements
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
> create table spam(spot inet[]); | |
> insert into spam values (ARRAY['192.168.1.1'::inet]); | |
> account_service=> select * from spam; | |
spot | |
--------------- | |
{192.168.1.1} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment