The subscript postgresql obtain an array of values

select (regexp_split_to_array ('11--22-333---5555','-+')::int[])[2];
select (array[1, 3, 4]::int[])[2];

 

 

 

Guess you like

Origin www.cnblogs.com/ejQiu-123/p/11612569.html