| От | Tom Lane |
|---|---|
| Тема | Re: Array shift equivalent? |
| Дата | |
| Msg-id | 26117.1165418800@sss.pgh.pa.us обсуждение исходный текст |
| Ответ на | Array shift equivalent? (Michael Glaesemann <grzm@seespotcode.net>) |
| Ответы |
Re: Array shift equivalent?
|
| Список | pgsql-general |
Michael Glaesemann <grzm@seespotcode.net> writes:
> I'm trying to shift the first element off of an array, but I'm just
> not getting it. I'm not necessarily interested in saving the rest of
> the array. i just want to get the first element, which in this case
> is another array.
No, it isn't. What you've got is a 2-D array. I don't think there
is an operation that will produce a 1-D subset --- the array slice
subscript operation produces something that's smaller but still has
the same number of dimensions.
regards, tom lane
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера