MySQL Forums
Forum List  »  Newbie

Query to limit search to portion of column
Posted by: Rasiel Suarez
Date: April 25, 2012 06:33PM

Hi, I'm brand-spanking-new to MySQL and learning via phpmyadmin.

I want to match a text string in a column but want to limit the searchspace to the first say 100 characters. Currently I'm using a query in this form:

SELECT * FROM tablename WHERE textcol LIKE '%searchstring%';

I'm guessing I have to use CONCAT but not sure

Thanks!

Ras

Options: ReplyQuote


Subject
Written By
Posted
Query to limit search to portion of column
April 25, 2012 06:33PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.