Re: 'select where' using multiple columns. - Mailing list pgsql-sql

From Hélder M. Vieira
Subject Re: 'select where' using multiple columns.
Date
Msg-id 008601c599aa$7f821a10$580bfea9@hmv02
Whole thread Raw
In response to 'select where' using multiple columns.  (Rob Kirkbride <rob@rkcomputing.co.uk>)
List pgsql-sql
> Is there a way to do something like a
> 'select * where forename_1,forename_2,surname like '%String%'   ??


You could try the following, but it won't get a medal for performance...

SELECT * FROM xpto WHERE forename_1 LIKE '%String%' OR forename_2 LIKE 
'%String%' OR surname LIKE '%String%'



Helder M. Vieira 




pgsql-sql by date:

Previous
From: daq
Date:
Subject: Re: 'select where' using multiple columns.
Next
From: Rob Kirkbride
Date:
Subject: Re: 'select where' using multiple columns.