in reply to MySQL Answer

SELECT * FROM table WHERE title LIKE "category1|subcat1|%" ORDER BY title;

Replies are listed 'Best First'.
Re: Re: MySQL Answer
by Anonymous Monk on Jul 19, 2002 at 13:28 UTC
    Thank you, I was thinking of that
      what if I just wanted to get the 2 categories
        select * from table where title regexp "^[^|]*|[^|]*$";

        T I M T O W T D I
        SELECT * FROM table WHERE title LIKE "category1|subcat1|%" ORDER BY title LIMIT 2;