pg_query
| From: | Moo | Date: | Thu, 26 Feb 2004 02:54:04 +0000 |
| Subject: | pg_query | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-178902@lists.php.net to get a copy of this message | ||
Hi There,
I have a small question about sending PostgreSQL
commands/statements. I noticed that there's a function
pg_insert that can insert rows, but I have also seen
codes that use pg_query(pg_exec, actually) to do the
same job(in phpBB). Since 'query' is defined to
'retrieve' data, is it more preferred to use pg_insert
when inserting rows? Maybe more generally, do I just
send whatever through pg_query, or it's more
adequate/efficient to use specific functions. Thank
you.
Moo
-----------------------------------------------------------------
每天都 Yahoo!奇摩
海的顏色、風的氣息、愛你的溫度,盡在信紙底圖
http://tw.promo.yahoo.com/mail_premium/stationery.html