Re: [PHP-DB] a beginner

2002-08-26 Thread Pax

Sorry, Ruprecht. I was talking about mSsql (miscrosoft).



"Ruprecht Helms" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Hi Pax,
>
> >' does ..
> > MSSQL stored proc?
>
> I don't think. Mysql handles the handling of SQL-processes by creating
> a link for the time the process is working. After it the link dies.
> The result mysql have no transaction-tracking. That's my actual knowledge
of
> mysql.
>
> The other database I don't know.
>
> Regards,
> Ruprecht
>
> --
> Ruprecht Helms  -   IT-Service & Softwareentwicklung
> ==
> E-Mail: Ruprecht Helms <[EMAIL PROTECTED]>
> Date: 26-Aug-02
> Time: 21:57:22
> ==
> Homepage: http://www.rheyn.de
> email: [EMAIL PROTECTED]
>
> Phone + Fax  +49[0]7621 16 99 16
>
>
> This message was sent by XFMail
> 



-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP-DB] a beginner

2002-08-26 Thread Pax


Hi, there!
I am new to PHP/Postgres. I come from an ASP/(ADO)/MSSQL environment and I
have problems figuring out how to do things that are quite simple there.

First of all, a question that regards Postgres (I couldn't get an answer at
PG newsgroups). I understand that the PG 'synonym' for MSSQL stored
procedure is the 'function'. Am I right? Please, do not give me an equivoque
response. Is very important for me to have this topic clear to stop digging.

Second (still about PG), is there any way to have a PG function return a
multi-field, multi-row result set, just the way a simple 'select' does in a
MSSQL stored proc? What I mean is
CREATE FUNCTION f_test() RETURNS DontKnowWhat AS
'SELECT * FROM MyTable'
LANGUAGE SQL ... or maybe PLPGSQL?
Is there any way to do it?

The third question regards PHP. I understand that PHP is able to manage
bi-dimensional result sets. If PG cannot return such sets from code that is
stored on the server (stored procs/functions), then the only way to obtain
them is issuing hand-made query strings from PHP?


Thanks.
Pax.




-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php