| От | Alvaro Herrera |
|---|---|
| Тема | Re: ERROR: array subscript out of range |
| Дата | |
| Msg-id | 20090411040340.GH8957@alvh.no-ip.org обсуждение исходный текст |
| Ответ на | ERROR: array subscript out of range (chinchu2005 <chinchu2005@gmail.com>) |
| Список | pgsql-general |
chinchu2005 escribió: > > Hello all, > Need ur help.I dont know wats wrong with the following fucntion. > create or replace function twoarray() returns setof integer as > ' > declare > i integer; > j integer; > a integer[][]; > begin > for i in 1..10 loop > for j in 1..2 loop > a[i][j]:=i*j; We just had this question on the spanish list. Somebody was kind enough to write the answers down in the Wiki: http://wiki.postgresql.org/wiki/Matrices_Multidimensionales_con_funciones It is all in spanish, but the code examples should be helpful nonetheless. -- Alvaro Herrera http://www.CommandPrompt.com/ The PostgreSQL Company - Command Prompt, Inc.
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера