|
|
Question : String CONTAINS search_sting?
|
|
I would like to know if it is possible to query a table so that I can get all records where a certain field contains a certain string.
What I mean is: SELECT * FROM table WHERE **table_field contains "some string"**
in the part between the ** I want a boolean statement where true is returned if the table_field for the record contains the predetermined string. So if the table_field for a record is "catmousejohn" and the predetermined string is "mou", the record would be selected since "mou" is contained in "catmousejohn".
Thank you, Andrej
|
Answer : String CONTAINS search_sting?
|
|
SELECT * FROM table WHERE field LIKE '%mou%';
|
|
|
|