Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8738409
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T10:43:37+00:00 2026-06-13T10:43:37+00:00

I have a column in my table called tags. It has comma delimited text

  • 0

I have a column in my table called tags. It has comma delimited text in it (box, hat, car).

I select a row from my table and I want to find other rows that have similar tags to the tags in the row selected.

I know it could be a better table design, but I can’t change the design.

I know this will search the tags for a keyword, but I don’t want to search via a keyword but by a list of tags.

WHERE (',' + Tags + ',') LIKE '%,keyword,%'

Does anyone know how I would do this?

Using MYSQL.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-13T10:43:38+00:00Added an answer on June 13, 2026 at 10:43 am

    You say you can’t change the design. Can you add a FULLTEXT index and put this table in the MyISAM access method? If so you can use FULLTEXT searching. For your application you’ll do best using BOOLEAN mode.

    WHERE MATCH (tags)
          AGAINST ('box hat -car' IN BOOLEAN MODE);
    

    This particular search looks for keywords box and hat, and excludes the keyword car.

    Here’s a description. This might work well for you.
    http://dev.mysql.com/doc/refman/5.5/en/fulltext-boolean.html

    You can run a FULLTEXT search in InnoDB. But I don’t believe you can index it.

    If you can’t use a fulltext search, you’re stuck with the wrong tool for your job. Matching comma-delimited strings with SQL is like driving nails by hitting them with the handle of a screwdriver. Both take a long time and are incredibly awkward.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

In database table I have column called options . It has type of integer
I have a table called Event. A column has duration--which is...how long that event
I have a table called scheduler_sched which has several columns, including a column called
I have a table column called post_tags within a table called posts where assigned
I have table called Buttons. Buttons table i have column button_number . Table contain
I have a value in my MS SQL table column called XDATA like this:
Hi i have a table called 'BookPage' with column: 'PageText' i have set up
I have a table called, tblClient with an encrypted column called SSN . Due
So here is the situation. In my db table i have a column called
I have a Datetime column called CreatedOn in a table. CreatedOn is also part

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.