Search Postgresql Archives

Re: Help with a very newbie question...

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

 



> 
> 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


---------------------------(end of broadcast)---------------------------
TIP 4: Don't 'kill -9' the postmaster

[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