Re: Consulta - Mailing list pgsql-general

From Peter Eisentraut
Subject Re: Consulta
Date
Msg-id Pine.LNX.4.30.0104261733300.758-100000@peter.localdomain
Whole thread Raw
In response to Consulta  ("Alejandro Cicero" <acicero@afip.gov.ar>)
List pgsql-general
Alejandro Cicero writes:

> En ORACLE, puedo pasar parametros a un query de la siguiente manera:
>
> select campo1, campo2
> >from tabla1
> where campo3=&variable
>
> En Postgres como se hace?

If you are using Embedded SQL (epgc) then it's probably :variable.  If
you're in PL/pgSQL then it's just the name of the variable without special
characters. Otherwise you need to prepare the query string in your client
application before sending it to the database server.  PostgreSQL doesn't
have generic server-side variables.

--
Peter Eisentraut   peter_e@gmx.net   http://funkturm.homeip.net/~peter


pgsql-general by date:

Previous
From: jdassen@cistron.nl (J.H.M. Dassen (Ray))
Date:
Subject: Re: Why Size Of Data Backed Up Varies Significantly In SQL 6.5?
Next
From: Jeff Eckermann
Date:
Subject: RE: Re: Need for newbie friendly docs (was Newbie strug gling...)