Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

If Field Contains 1

Status
Not open for further replies.

coldfused

Technical User
Jan 27, 2001
2,442
0
0
US
How would I do a Select statement looking for a specific word or group of words in a long text field?

Select *
From centers
Where c_specs "Contains" 'The Words I'm Looking for'

How do I run that SQL command on a long text?

Thanks in advance,
Carl

----------------------------------------
Online Marketing - de·ci·phered
Always Learning...
 
I tried that originally and it didnt work. Turns out the word I was searching for was not spelt correctly.

Thanks.

----------------------------------------
Online Marketing - de·ci·phered
Always Learning...
 
I found something odd yesterday in one of my scripts. It's a php script running something like...
SELECT * FROM table WHERE UCASE(field) LIKE '%BCER1P%'

Somewhere in the conversion, the %BC became 1/4 (not one slash four, but one quarter). I found that odd. I ended up removing the percents and changing the UCASE(field) to TRIM(UCASE(field)).

Mark
 
Hi coldfused,

I found your question from 7/2005 where you were looking for advice about migrating from Access to SQL.

I'm trying to do the same thing now and could use your help. I've having a *itch of a time finding info.

Any help, such as pointing me in the right direction would be much appreciated.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top