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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T19:08:38+00:00 2026-06-17T19:08:38+00:00

I am generating the below query as part of our system: SELECT * FROM

  • 0

I am generating the below query as part of our system:

SELECT * FROM (`videos`) WHERE (
    `videos`.`title` LIKE "%apple%" 
  OR WHERE 
    `videos`.`byline` LIKE "%apple%" 
  OR WHERE `videos`.`description` LIKE "%apple%"
);

However, this is throwing a syntax error.

So, what’s up?

Note that I need the brackets as those three where‘s are linked, often followed by separate AND WHERE‘s

  • 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-17T19:08:39+00:00Added an answer on June 17, 2026 at 7:08 pm

    Sql statements use single quotes around literal values. Also only one where clause is needed in this case. Simply use one where clause and then use or to connect the predicates. The script also has some parenthesis that are not required.

    The final result looks like:

    SELECT * FROM `videos` WHERE
        `videos`.`title` LIKE '%apple%' OR 
        `videos`.`byline` LIKE '%apple%' OR 
        `videos`.`description` LIKE '%apple%';
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Below is my Code I am generating Password Protected pdf from ItextSharp. Actually two
can any one help me in generating query for the below scenario? i have
I'm generating a PDF using Prince. I'm using the below stylesheet (part of a
I have the lambda expression like below Projects.Where(Project => (Project.PostalCode == 5000)) Its generating
I have to implement SELECT ... FROM ... WHERE .. IN query in my
The snippet below is generating weird output: for s in servers: vo = ss.getServerVO(s)
I am generating dynamically textboxes and adding them to a placeholder as below. TextBox
Am generating a hidden fields like so: @helper.input(_form(userID), '_label-> None) { (id, name, value,
When generating models from postgresql with ColdFusion Illudium Code generator the boolean values get
When generating VS2010 targets with CMake, I would like the /LTCG flag turned on

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.