Обсуждение: user function and bind

Поиск
Список
Период
Сортировка

user function and bind

От
David Harel
Дата:
<font size="+1"><font face="Arial">Hi, <br /> I need an example how to write user function with columns binding and how
touse it on PHP</font></font><br /><pre class="moz-signature" cols="72">-- 
 
Thanks.

David Harel,

==================================

Home office +972 77 7657645
Cellular:   +972 54 4534502
Snail Mail: Amuka           D.N Merom Hagalil           13802           Israel
Email:      <a class="moz-txt-link-abbreviated" href="mailto:hareldvd@ergolight-sw.com">hareldvd@ergolight-sw.com</a>

</pre>

Re: user function and bind

От
Justin Graf
Дата:
On 5/19/2010 9:56 AM, David Harel wrote:
Hi,
I need an example how to write user function with columns binding and how to use it on PHP

-- 
Thanks. 


I'm not sure i understand your   question.  You want a function to return record type correct??







All legitimate Magwerks Corporation quotations are sent in a .PDF file attachment with a unique ID number generated by our proprietary quotation system. Quotations received via any other form of communication will not be honored.

CONFIDENTIALITY NOTICE: This e-mail, including attachments, may contain legally privileged, confidential or other information proprietary to Magwerks Corporation and is intended solely for the use of the individual to whom it addresses. If the reader of this e-mail is not the intended recipient or authorized agent, the reader is hereby notified that any unauthorized viewing, dissemination, distribution or copying of this e-mail is strictly prohibited. If you have received this e-mail in error, please notify the sender by replying to this message and destroy all occurrences of this e-mail immediately.
Thank you.
Вложения

Re: user function and bind

От
Gary Chambers
Дата:
David,

> I need an example how to write user function with columns binding and how to
> use it on PHP

If I'm understanding your request correctly:

$dbh = pgpconnect("dbname=db host=dbhost user=dbuser password=pw");
$query = 'SELECT * FROM table WHERE x=$1 AND y=$2 AND z=$3';
$stmt = pg_query_params($dbh, $query, array($x, $y, $z));

-- Gary Chambers

/* Nothing fancy and nothing Microsoft! */