Re: Consulta

Поиск
Список
Период
Сортировка
От Peter Eisentraut
Тема Re: Consulta
Дата
Msg-id Pine.LNX.4.30.0104261733300.758-100000@peter.localdomain
обсуждение исходный текст
Ответ на Consulta  ("Alejandro Cicero" <acicero@afip.gov.ar>)
Список 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 по дате отправления:

Предыдущее
От: jdassen@cistron.nl (J.H.M. Dassen (Ray))
Дата:
Сообщение: Re: Why Size Of Data Backed Up Varies Significantly In SQL 6.5?
Следующее
От: Jeff Eckermann
Дата:
Сообщение: RE: Re: Need for newbie friendly docs (was Newbie strug gling...)