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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T13:23:53+00:00 2026-06-11T13:23:53+00:00

so actually i’m writing client/server programs using TCP/IP. In this case, client can upload

  • 0

so actually i’m writing client/server programs using TCP/IP. In this case, client can upload file and choose whether the file is shared to public,group,or private. The problem is when the client choose to share the file to group(other clients/members). As a beginner, i have no idea to store a string array which is contains the name of the selected members into SQL database. So, i decided it to create a long string like the example below.

//assume this is the long string stored in column called "member"

 //this is row1// "Lexus,Mitsubishi,Bmw,Audi,Ford"

//this is row2// "12345678,456789,54321,87654321,Lexus"

then i want to check whether “Lexus” is in those strings above. If it exists, then i will show those two rows.

So the main point is, i really want to know how to write the SQL Query in this case, and perhaps you have the best way to solve this problem.

Thank you for helping me, currently it’s working with ‘LIKE’ operator.

 SELECT * FROM TABLENAME WHERE ROW1 LIKE '%LEXUS%'

but i think the problem is not solved yet even though it is working, because i’m still using a single long string. I agree with Tim’s suggestion that i need to create another table, but i think i need more tutorials about connecting two tables using primary key and foreign key

  • 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-11T13:23:54+00:00Added an answer on June 11, 2026 at 1:23 pm

    Have you tried using the LIKE operator?

    SELECT * FROM TABLENAME WHERE ROW1 LIKE '%LEXUS%'

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

Sidebar

Related Questions

Actually, I'm using this way. Do you have a better way? private bool AcceptJson(HttpRequest
Actually I am working on this for the last 3 or 4 weeks but
Actually I am stuck in middle of some mysql code. Can anyone suggest a
Actually i want that, suppose i have a colorcode #FF3366. How can i examine
Actually ,i am working on a livechat application its works fine.This application is tabbed
Actually this is my code: echo <pre>; // get current vars $p1 = isset($_GET['p1'])
Actually, I want to create an application in C such that 2 people can
actually, i'm developing a web template using ASP.NET and C#. i have a listview
Actually I am using 2 Tabs.Both of the tab is having different activity.Now when
Actually this is a classic problem as SO user Victor put it (in another

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.