pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Bruno Wolff III <bruno@wolff.to>
To: Franco Bruno Borghesi <franco@akyasociados.com.ar>
Cc: Guy Korland <korland@cs.Technion.AC.IL>
Cc: pgsql-sql@postgresql.org
Subject: Re: SQL substring
Date: Wed, 12 Nov 2003 09:13:58 -0600
Message-ID: <20031112151358.GA30248@wolff.to> (raw)
In-Reply-To: <1068647911.4251.3.camel@taz>
References: <00ea01c3a926$4049b6d0$4a264484@cs.technion.ac.il>
	<1068647911.4251.3.camel@taz>

On Wed, Nov 12, 2003 at 11:38:31 -0300,
  Franco Bruno Borghesi <franco@akyasociados.com.ar> wrote:
> ... WHERE field1 LIKE '%' || field2 || '%'

The first way won't work correctly if field2 has %s in it.

> or
> ... WHERE position(field2 in field1)>0



view thread (4+ messages)

Message-ID: <20031112151358.GA30248@wolff.to>
Permalink:  ../20031112151358.GA30248@wolff.to/
Also on:    postgresql.org/message-id/20031112151358.GA30248@wolff.to

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: bruno@wolff.to, franco@akyasociados.com.ar, korland@cs.Technion.AC.IL
  Subject: Re: SQL substring
  In-Reply-To: <20031112151358.GA30248@wolff.to>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox