Last active
February 24, 2019 09:29
-
-
Save kovid-rathee/e2586da2cd2fc9dbf2d2ffb95b5e68c0 to your computer and use it in GitHub Desktop.
Getting an array element by Index
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 table array_fn (test_array text[]); | |
insert into array_fn values ('{This,Is,What,Bothers,Me}'); | |
select test_array[3]::varchar from array_fn; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment