ilike comparison involving attributes and wildcards... - Mailing list pgsql-general

From Spirit of Amiga
Subject ilike comparison involving attributes and wildcards...
Date
Msg-id yfBB9.15265$2x4.1741066@news20.bellglobal.com
Whole thread Raw
List pgsql-general
The query below seems like a lame hack to me:

SELECT some_column
    FROM some_table
    WHERE '$some_string_var' ILIKE '%' || some_column || '%';

Is there a more elegant way of comparing a value with a wildcarded column?

TIA,

SoA



pgsql-general by date:

Previous
From: "Marc G. Fournier"
Date:
Subject: RC1 Packaged for Testing ...
Next
From: Luis Fresco Zens
Date:
Subject: Inquiry From Form [pgsql]