postgresql根据下标,获取数组的值

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

猜你喜欢

转载自www.cnblogs.com/ejQiu-123/p/11612569.html