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

  • Home
  • SEARCH
  • 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 3665424
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 19, 20262026-05-19T01:45:35+00:00 2026-05-19T01:45:35+00:00

id categories ext_categories 2 36 17,250 8 20 28 10 17 18 if query

  • 0
id  categories  ext_categories
2      36      17,250
8      20      28
10     17      18

if query categories = 17 I can get results like this

id
2  (ext_categories field)
10

How to query ext_categories for id: 2

Thank you!

  • 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-19T01:45:35+00:00Added an answer on May 19, 2026 at 1:45 am

    How is the field ext_categories implemented? For example, are you using a varchar field and pipe-delimited string (of numbers) as values with the strict format

    |n|...
    

    so that your table looks like

    id  categories  ext_categories
    2      36      "|17|250|"
    8      20      "|28|"
    10     17      "|18|"
    

    instead?

    If so, try

    select * from table where categories = 17 OR ext_categories like '%|250|%'
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

When using categories, you can override implementation methods with your own like so: //
$('div#Categories > div.categories a#showhide').click(function(){ // Get the subManufacturers list var subCatList = $(this).parent().find('ul#hiddenSubCategories'); //
im trying to make Categories and Subcategories, im checking this models but i have
I'm showing categories with this codes. Normally there is no problem. <?php $categories =
i have categories list like Designtype Multi Sub cat multi 1 sub cat multi
How do I create categories in an arbitrary ListView like those in Preferences (PreferenceCategory)?
Categories question: I'd like to place a category on NSURL that, among doing other
I'm displaying my categories using the wp_list_categories function like so: <?php wp_list_categories('selected=6&title_li='); ?> Now,
I have a table:'Categories' which has two fields:Category_ID and Category. Data in Category_ID field
Taking the typical products / categories many-to-many relationship you'd typically have a relationship like

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.