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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T18:43:51+00:00 2026-05-14T18:43:51+00:00

So client gives me a string like 1,23,23,abc,ggg,544,tf4, from user 12 . There can

  • 0

So client gives me a string like "1,23,23,abc,ggg,544,tf4," from user 12 . There can be infinit number of elements with no spaces just value,value,… structure. I have users table (with users uId(key), names etc). I have streams table with ( sId(key), externalID, etc values). User sends me externalId’s. And I need to hawe externalId’s in play list (not my sId’s). I need some way to store such array into my DB and be able to get it from DB.

I need to be able to do 2 things

  1. return such string back to user
  2. be able to get na array from it like {1; 23; 23; abc; ggg; 544; tf4;}

So what is best method (best here means shourt(small amount of) code)

  1. to store such data into db
  2. to retrivew stored tata in bouth ways shown
  • 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-14T18:43:52+00:00Added an answer on May 14, 2026 at 6:43 pm

    I think, something like this should work:
    User: user_id
    Value: user_id, value, id

    And according to your example 1,23,23,abc,ggg,544,tf4 from user 12, you will have:

    TABLE User  
    user_id  
    12
    

    and

    TABLE Value  
    user_id | value | id  
    12      | 1     | 0  
    12      | 23    | 1  
    12      | 23    | 2  
    12      | ggg   | 4  
    12      | abc   | 3  
    ...
    

    id will be used for ordering list for each user, so if you want do retrieve it, just use this query: SELECT value FROM VALUE WHERE user_id = 12 ORDER BY id

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

Sidebar

Related Questions

I am developing one program in which a user can download a number of
I'm creating an admin module for my client that gives them access to some
Can anyone give me the 411 on shopping carts? I have a client that
My POST method looks like this: @POST @Consumes({application/json}) @Path(create/) public void create(String param1, String
Simply said: Can I generate in C++ some kind of text information - user
I have an application using sockets.. a client and server program like mySql.. I
We've used php to build up an interface that the client can upload svg
I am trying to deserialize a JSON string that looks like so: {'type':'clientlist','client_list':[]} I
In my project I declare the one string like public string str=dbname; , that
My connection string is: String excelConn = Provider=Microsoft.Jet.OLEDB.4.0;Data Source= + Server.MapPath(abc.xls) + ;Extended Properties='Excel

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.