Jump to content

if a database field content is in a string


gerkintrigg

Recommended Posts

Hiya.

I've made databases and queried them for a good few years, but I've only ever looked for where things are in the database field.

What I want to do is see whether the text string contains a database field content so:

 

If the database has a field called "phrase" and in that field is the phrase "how are you", and the text string contains: "how are you feeling?", I want the query to find the database record and output the reply.

 

I've done it if the string contains the field, but never if the field contains the string. is this possible without looping through loads of records?

 

Thanks.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.