Search Postgresql Archives

Re: How to return ARRAY from SQL function?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Alexander Farber wrote:
> But creating an SQL function fails -
> 
> words_ru=> CREATE OR REPLACE FUNCTION words_all_letters()
> words_ru->         RETURNS array AS
> words_ru-> $func$
> words_ru$>         SELECT ARRAY[...

"array" is not an existing data type.

You'll have to specify an array of which type you want, probably

 ... RETURNS text[]

Yours,
Laurenz Albe
-- 
Cybertec | https://www.cybertec-postgresql.com






[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]

  Powered by Linux