Skip site navigation (1) Skip section navigation (2)

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 (view raw or flat)
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

pgsql-admin by date

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

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group