pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: JT Kirkpatrick <jt-kirkpatrick@mpsllc.com>
To: 'pgsql-sql@hub.org' <pgsql-sql@hub.org>
Subject: using like
Date: Tue, 25 May 1999 16:17:09 -0400
Message-ID: <01BEA6CA.0ACA7E80.jt-kirkpatrick@mpsllc.com> (raw)

ok, sorry for conjestion, but i figured it out:  select autoinv, company 
from table1 where company like '%Alice%'; -- that works in psql.  but how 
do i substitute "Alice" with a variable name??



i'm trying to query my database (6.4.2 through odbc ms access) to find all 
records matching a "like" statement.  from psql i am trying this -- select 
autoinv, company from table1 where company like 'Alice'; -- but it doesn't 
work!  i could run whatever works in psql as a passthrough query in 
access97, if i could get it to work in psql!  i'd expect the query to pull 
values of company that = "Alice w." "Alice Higgins" "Alicexxxxxxx" 
"xxxxAlice..xxx", and you get the idea.

TIA for any help!  jt



view thread (5+ messages)  latest in thread

Message-ID: <01BEA6CA.0ACA7E80.jt-kirkpatrick@mpsllc.com>
Permalink:  ../01BEA6CA.0ACA7E80.jt-kirkpatrick@mpsllc.com/
Also on:    postgresql.org/message-id/01BEA6CA.0ACA7E80.jt-kirkpatrick@mpsllc.com

 · 

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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-sql@postgresql.org
  Cc: jt-kirkpatrick@mpsllc.com, pgsql-sql@hub.org
  Subject: Re: using like
  In-Reply-To: <01BEA6CA.0ACA7E80.jt-kirkpatrick@mpsllc.com>
  References: <01BEA6CA.0ACA7E80.jt-kirkpatrick@mpsllc.com>

* 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