How to remove n-first elements from array?

Поиск
Список
Период
Сортировка
От aasat
Тема How to remove n-first elements from array?
Дата
Msg-id 1355673672918-5736765.post@n5.nabble.com
обсуждение исходный текст
Ответы Re: How to remove n-first elements from array?
Список pgsql-general
Hi,

I have array for example

do $$
declare
  v_arr integer[] := array[1, 2, 3, 4, 5];
begin
end;
$$

I want to remove 2 first element and get array with non-changed indexes
(subscript)

new array := '[3:5]={3, 4, 5}'::integer[]

It is possible in pl/pgsql?



--
View this message in context:
http://postgresql.1045698.n5.nabble.com/How-to-remove-n-first-elements-from-array-tp5736765.html
Sent from the PostgreSQL - general mailing list archive at Nabble.com.


В списке pgsql-general по дате отправления:

Предыдущее
От: Murray Cumming
Дата:
Сообщение: Authenticate with hash instead of plaintext password?
Следующее
От: Peter Bex
Дата:
Сообщение: Re: Authenticate with hash instead of plaintext password?