Re: Help with a very newbie question... - Mailing list pgsql-general

From Pavel Stehule
Subject Re: Help with a very newbie question...
Date
Msg-id Pine.LNX.4.44.0502231705440.16774-100000@kix.fsv.cvut.cz
Whole thread Raw
In response to Re: Help with a very newbie question...  ("Cristian Prieto" <cristian@clickdiario.com>)
Responses Re: Help with a very newbie question...
List pgsql-general
>
> If I did the following:
> SELECT * FROM "Users";
> I get:
>
> userid  | passwd
> ----------+--------
>  cristian | hola
>
> AND I execute:
> SELECT getuser('cristian', 'hola');
>
> I get:
>      getuser
> -----------------
>  (cristian,hola)
>
There are two posibilities

SELECT getuser('cristian','hola');
SELECT * FROM getuser('cristian','hola') AS (userid varchar, passwd
varchar);

Regards
Pavel


pgsql-general by date:

Previous
From: Ken Johanson
Date:
Subject: Possible to run the server with ANSI/ISO string escapeing instead of C-style escapes?
Next
From: Richard Huxton
Date:
Subject: Re: Help with a very newbie question...