ID badge templates - Debt Consolidation - Debt Consolidation - Song Lyrics A to Z - ROKR E6

PDA

View Full Version : How to match an alphanumeric string data in a field?


wonder_gal
Dec 1st 2005, 10:10 pm
I would like to return a total number of records from a table in which their 'inMessage' field matches the a string with a format like this, eg. "55 213 aaa 58"

Can anyone tell me how shall i write the sql statement?



SELECT COUNT(*) AS Total FROM Inlog WHERE Message LIKE '???'


What shall i put as my comparison parameter?

Michau
Dec 5th 2005, 2:16 am
Do you want to find all the fields that contain these characters as a substring? Then you would write LIKE '%your_substring%';