Re: Manejo de strings en consulta

From: Alvaro Herrera <alvherre(at)commandprompt(dot)com>
To: Gustavo <gustavor(at)intercomgi(dot)net>
Cc: pgsql-es-ayuda(at)postgresql(dot)org
Subject: Re: Manejo de strings en consulta
Date: 2008-01-10 19:02:08
Message-ID: 20080110190208.GS6465@alvh.no-ip.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-es-ayuda

Gustavo escribió:

> SELECT * FROM servicio.recurso r WHERE E'C:\\\\Documents and
> Settings\\\\Gustav\\\\Escritorio\\\\TallerUML\\\\12-09\\\)
> Entrega2\\\\Software Architecture Document.doc' ~ '^'||r.full_path
>
> Respuesta:
>
> ERROR: operator does not exist: boolean || character varying

Agrega parentesis para asegurarte del orden de evaluacion:

SELECT * FROM servicio.recurso r WHERE E'C:\\\\Documents and
Settings\\\\Gustav\\\\Escritorio\\\\TallerUML\\\\12-09\\\)
Entrega2\\\\Software Architecture Document.doc' ~ ('^'||r.full_path)

--
Alvaro Herrera http://www.CommandPrompt.com/
The PostgreSQL Company - Command Prompt, Inc.

In response to

Responses

Browse pgsql-es-ayuda by date

  From Date Subject
Next Message Tom Lane 2008-01-10 19:12:12 Re: 8.3beta bug or feature?
Previous Message Alvaro Herrera 2008-01-10 18:59:09 Re: RV: Consultar Secuencias