On Thu, 2005-05-19 at 13:52, lorid wrote: > How can I do a simple select statement ignoring the case ? kinda like \i > in reg expressions ? > > thanks in advance You can use upper/lower: select * from table where lower(somefield) like '%abc%'; or REGEX: select * from table where lower ~* '.*abc.*'; SEe: http://www.postgresql.org/docs/8.0/static/functions-matching.html#FUNCTIONS-POSIX-TABLE