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 956445
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T00:32:20+00:00 2026-05-16T00:32:20+00:00

Given that I have a table with a column of TEXT in it (MySQL

  • 0

Given that I have a table with a column of TEXT in it (MySQL or SQlite) is it possible to use the value of that column in a way that I could find similar rows with somewhat related text values?

For example, I if I wanted to find related rows to row_3 – both 1 & 2 would match:

row_1 = this is about sports
row_2 = this is about study
row_3 = this is about study and sports 

I know that I could use FULLTEXT or FTS3 if I had a key word I wanted to MATCH against the column values – but I’m just trying to find text that is somewhat related among the rows.

  • 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-05-16T00:32:20+00:00Added an answer on May 16, 2026 at 12:32 am

    You’re using the wrong hammer to pound that screw in. A single string in a database column isn’t the way to store that data. You can’t easily get at the part you care about, which is the individual words.

    There is a lot of research into the problem of comparison of text. If you’re serious about this need, you’ll want to start reading about the variety of techniques in that problem domain.

    The first clue is that you want to access / index the data not by complete text string, but by word or sentence fragment (unless you’re interested in words that are spelled similarly being matched together, which is harder).

    As an example of one technique, generate a chain out of your sentences by grabbing overlapping sets of three words, and store the chain. Then you can search for entries that have a large number of chain segments in common. A set of chain segments for your statements above would be:

    row_1 = this is about sports

    row_2 =
    this is about study

    row_3 = this is
    about study and sports

    • this is about (3 matches)
    • is about sports
    • is about study (2 matches)
    • about study and
    • study and sports
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have mysql table that has a column that stores xml as a string.
I have a <table/> in a ViewUserControl that I have given the tag a
I have a MySQL table holding lots of records that i want to give
Given that I only have one monitor, what's the best way to debug a
I have a MySQL InnoDB table with 238 columns. 56 of them are TEXT
Is it possible to convert text from a table column in SQL Server to
I have a table that contains tasks and I want to give these an
What alternatives are there to GAE, given that I already have a good bit
I have just started migrating my homegrown persistence framework to JPA. Given that the
I have noticed that regardless of a given script's execution time, every date() call

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.