using like

From: JT Kirkpatrick <jt-kirkpatrick(at)mpsllc(dot)com>
To: "'pgsql-sql(at)hub(dot)org'" <pgsql-sql(at)hub(dot)org>
Subject: using like
Date: 1999-05-25 20:17:09
Message-ID: 01BEA6CA.0ACA7E80.jt-kirkpatrick@mpsllc.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

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

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message JT Kirkpatrick 1999-05-25 20:37:46 RE: [SQL] using like
Previous Message JT Kirkpatrick 1999-05-25 20:13:05 using like