Peter try this,

> <cfquery name="doclist" datasource="custdoc" dbtype="ODBC">
> SELECT      *
> FROM         Customerdoclist
> WHERE       (Customerdoclist.keywords LIKE '%#url.page#%')
> </cfquery>

Chris Cortes
Consultant
[EMAIL PROTECTED]
Direct 713-985-6244
Cell 832-723-6485

Stonebridge Technologies
...The Fast Track to e-Business.
visit us at www.sbti.com


----- Original Message -----
From: "Peter Benoit" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, August 23, 2000 3:31 PM
Subject: Select Query


> I have set a url string to a page, and I want to perform a query from a DB
> using that as a keyword.
>
> Can I set a field in a DB with a bunch of keywords to compare against a
> string?
>
> Lets say I pass the word "Peter" is #url.page#
>
> And the field in the DB named Keyword has - John Mary Peter Bill - in it.
> Is it possible to build a query that will find Peter in that list of
words,
> and presents the results?
>
> My code so far:
>
> <cfquery name="doclist" datasource="custdoc" dbtype="ODBC">
> SELECT      *
> FROM         Customerdoclist
> WHERE       (Customerdoclist.keywords LIKE '#url.page#')
> </cfquery>
>
>
> Peter
>
> --------------------------------------------------------------------------
----
> Archives: http://www.mail-archive.com/[email protected]/
> To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or
send a message to [EMAIL PROTECTED] with 'unsubscribe' in
the body.
>

------------------------------------------------------------------------------
Archives: http://www.mail-archive.com/[email protected]/
To Unsubscribe visit 
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a 
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.

Reply via email to