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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T01:35:03+00:00 2026-06-11T01:35:03+00:00

Ok so the query is really simple: SELECT a, b, c FROM d WHERE

  • 0

Ok so the query is really simple:

SELECT a, b, c FROM d WHERE a = ('x' OR 'y' OR 'z');

And that query works great, but if I were to query say, this:

SELECT a, b, c FROM d WHERE a = ('x' OR 'y' OR 'z' OR 'x1');

No rows would be returned because of the number in ‘x1’.

I’m using mysql 5.5.9, and I’m running a virtual server on my mac using MAMP (if it matters)

Thanks for the help guys!

  • 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-11T01:35:05+00:00Added an answer on June 11, 2026 at 1:35 am

    Try these

    SELECT a, b, c FROM d WHERE a IN ('x','y','z','x1');
    

    OR

    SELECT a, b, c FROM d 
    WHERE a = 'x' OR a = 'y' OR a = 'z' OR a = 'x1';
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm sure this is something really simple that I'm overlooking, but MS SQL is
I am doing a really simple query in ASP.NET, but after I inserted the
I have a LINQ to Entity query that is running really slow. This query
This should be really simple I know, but for the life of me I
i've got a really simple linq to entites statement :- var query = (from
I'm having troubles finding a bad query that's really causing high CPU load due
Hi I have a really complicated dynamic query that i want to use to
I am having a really hard time writing a SELECT query to get a
Suppose I have a SQL Query that isn't really nice. The SQL Query has
I am outputing a simple list of options from dynamic select menus using Codeigniter/MYSQL.

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.