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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T05:56:58+00:00 2026-06-07T05:56:58+00:00

i have a litle problem here, i try to create some AI that will

  • 0

i have a litle problem here, i try to create some AI that will response the input text, but the problem is

said that we have a database called “AI” that contain column “answer” and “question”

if i try to ask “Hey why are my mobile explode” using query

SELECT * FROM AI where question LIKE "%Hey why are my mobile explode%" LIMIT 1

And i have a database record like this…

Question  |   Answer
================================
Explode   | because you got suck

I got nothing result from my query, but if i change the record and change the query to like this …

Query

SELECT * FROM AI where question LIKE "%explode%" LIMIT 1

Database

Question                        |   Answer
=======================================================
Hey why are my mobile Explode   | because you got suck

I got the return..

so the conclusion is, “LIKE” operand is read the value that containing the condition text…

VALUE is the value of Question column
CONDITION is the condition on LIKE conditional OPERAND

Value = ... are my mobile **explode**
Condition = **explode**

so the case above is MATCH

but , is it possible that we reverse the function?, i mean, how to read the value thats contained on condition text…

Value = ... **explode**
Condition = "....are my mobile **explode**

Thanks before, hopes someone can help me here..

  • 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-07T05:56:59+00:00Added an answer on June 7, 2026 at 5:56 am

    Such simple queries will never work. You’d be FAR better off using a FULLTEXT index, which allows for such ‘natural language’ querying. If you can’t use fulltext for whatever reason, then you’ll have to do a large amount of pre-processing to build the query. For your first sample, it’d have to be:

    SELECT ... WHERE (question LIKE '%hey%') OR (question like '%why%') OR (quetsion LIKE '%...%')
    

    and performance will be absolutely abysmal, because fully wild-carded clauses like cannot use indexes AT ALL. The more words in the question, the more full-table scans MySQL will have to do, and the longer everything will take.

    By comparison, a fulltext version of the query would be

    SELECT ... WHERE MATCH question AGAINST ('Hey why are my mobile explode');
    

    and… on a meta level, I hope the answer to that question is “why are you searching for this instead of going to the hospital to get your burns/shrapnel wounds treated?”

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

Sidebar

Related Questions

I have a litte problem here. I want to join twice from the same
I have a little problem with javascript form submit issue, here is the script
I need a little push in the right direction. Here's my problem: I have
I have little problem in regular expressin creation. Expected input: blahblahblah, blahblahblah, 'blahblahblah', blahblahblah,
I have a little problem with some jquery and http://www.mikage.to/jquery/jquery_history_noc.html The function works great,
I have this little problem, that I cannot figure out which arguments to pass
I've got yet another deployment problem. What I have: little Windows Forms application that
After reading some items here I have decided to rewrite a little project using
I have create following structure. Here levels are up to 4 and groups are
I have some questione about NSMutableDictionary. I read that they are only a wrapper

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.