Re: need help to write a function in postgresql

From: "Albe Laurenz" <laurenz(dot)albe(at)wien(dot)gv(dot)at>
To: <mlanka(at)avineonindia(dot)com>, <pgsql-admin(at)postgresql(dot)org>
Subject: Re: need help to write a function in postgresql
Date: 2012-07-19 12:23:57
Message-ID: D960CB61B694CF459DCFB4B0128514C2082E6ED9@exadv11.host.magwien.gv.at
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

Madhu.Lanka wrote:
> Can u please help to write a function for the following scenario?

> "select [...] from [...] where [...] and p.name=? and p.password=?"

Don't use "?" for the parameters.
Use "$1" for the first parameter and "$2" for the second.

Yours,
Laurenz Albe

In response to

Browse pgsql-admin by date

  From Date Subject
Next Message Tom Lane 2012-07-19 15:01:23 Re: SSL SYSCALL error: EOF detected
Previous Message francescoboccacci@libero.it 2012-07-19 10:40:05 SSL SYSCALL error: EOF detected