From: | Kevin Heflin <kheflin(at)shreve(dot)net> |
---|---|
To: | "PGSQL-General (E-mail)" <pgsql-general(at)postgreSQL(dot)org> |
Subject: | multiple queries using PHP |
Date: | 2000-05-01 20:11:45 |
Message-ID: | Pine.LNX.4.10.10005011504460.16062-100000@mercury.shreve.net |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
My original problem began with.. I have a category table
cat_id (unique id)
cat_title (category title)
mastercat (0 indicates a main category, otherwise points to another cat_id
which indicates this category to be a subcategory)
I want to select cat_id and cat_title where mastercat=0
and at the same time would like to know whether these categories have any
other categories assigned to them via the mastercat.
I thought possibly my solution would be to select cat_id, cat_title into
temporary table where mastercat=0
then continue from there somehow.
Which lead me to my next question, which was how could I execute multiple
queries from within PHP ?
--------------------------------------------------------------------
Kevin Heflin | ShreveNet, Inc. | Ph:318.222.2638 x103
VP/Production | 333 Texas St #175 | FAX:318.221.6612
kheflin(at)shreve(dot)net | Shreveport, LA 71101 | http://www.shreve.net
--------------------------------------------------------------------
From | Date | Subject | |
---|---|---|---|
Next Message | Jan Wieck | 2000-05-01 21:30:57 | Re: PL/pgSQL: "record not assigned yet" meaning? |
Previous Message | Peter Eisentraut | 2000-05-01 19:50:57 | Re: referencial integrity constraint bug in version 7.0 beta 5 |