Re: Ejecutar cadena

From: Pascual De Ruvo <deruvo(at)gmail(dot)com>
To: Carlos Alberto Mÿffffffffffe1rquez Rey <carlos_marquez_rey(at)yahoo(dot)com>
Cc: pgsql-es-ayuda(at)postgresql(dot)org
Subject: Re: Ejecutar cadena
Date: 2005-08-13 21:29:51
Message-ID: fb73c1ee050813142968a99e9f@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-es-ayuda

On 8/12/05, Carlos Alberto Mÿffffffffffe1rquez Rey
<carlos_marquez_rey(at)yahoo(dot)com> wrote:
> Hola a Todos
>
> Existe alguna forma de pasarle una cadena de la
> siguiente forma :
>
> " (5 - 6) * 2 "
>
> a una funcion en postgre y que esta me de la
> respuesta: -2
>

Puedes hacer una función en pl/perl y utilizas la función eval()

Saludos,

Pascual De Ruvo

In response to

  • Ejecutar cadena at 2005-08-12 18:20:59 from Carlos Alberto Mÿffffffffffe1rquez Rey

Browse pgsql-es-ayuda by date

  From Date Subject
Next Message e-va 2005-08-13 22:04:51 Instalacion de Postgres 8 en XP Professional
Previous Message Miguel Ortega 2005-08-13 20:59:56 DudasPostgreSQL