Skip site navigation (1) Skip section navigation (2)

=?koi8-r?B?UmVbMl06IFtwZ3NxbC1ydS1nZW5lcmFsXSDP0NLFxMXMxc7JxSDSwdrNxdLB?==?koi8-r?B?IM3B09PJ18E=?=

From: Serik Akhmetov <uge(at)pochtamt(dot)ru>
To: pgsql-ru-general <pgsql-ru-general(at)postgresql(dot)org>
Subject: =?koi8-r?B?UmVbMl06IFtwZ3NxbC1ydS1nZW5lcmFsXSDP0NLFxMXMxc7JxSDSwdrNxdLB?==?koi8-r?B?IM3B09PJ18E=?=
Date: 2006-01-14 13:09:13
Message-ID: 1518538093.20060114180913@pochtamt.ru (view raw or flat)
Thread:
Lists: pgsql-ru-general
>>>>>> Serik Akhmetov writes:

SS>  Serik> Hello pgsql-ru-general, Добрый день !  Как определить размер
SS>  Serik> (кол-во элементов) массива ?

SS>   array_dims()

такая процедура

-- Function: test1()

-- DROP FUNCTION test1();

CREATE OR REPLACE FUNCTION test1()
  RETURNS text AS'
declare
 t  int4[] ;
 ret text;
begin

 t[0] := 100;
 t[1] := 200;

 select array_dims(t) into ret;
 return ret;
 
end'
  LANGUAGE 'plpgsql' VOLATILE;

  возвращает пустую строку. Что сделал не правильно ?


In response to

Responses

pgsql-ru-general by date

Next:From: Markus BertheauDate: 2006-01-15 06:55:57
Subject: Re: Re[2]: [pgsql-ru-general]
Previous:From: Sergey SuleymanovDate: 2006-01-14 12:48:29
Subject: Re: определение размера м

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group