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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T23:06:52+00:00 2026-05-16T23:06:52+00:00

Is there any provision for creating arrays (variable length would be preferable) in MySQL

  • 0

Is there any provision for creating arrays (variable length would be preferable) in MySQL . I need to create 2-3 lists for each user and update/append/delete items from the lists . How do I implement them? . Creating tables for each user will lead to a total mess in my opinion, but anyway I’m new to MySQL so please help me out . Thanks

EDIT:The lists will be one dimensional and contain the ids of other users.

  • 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-16T23:06:53+00:00Added an answer on May 16, 2026 at 11:06 pm

    It would be better if you told us what you are trying to do, not how you are trying to achieve it. Anyway, you can solve it using three tables List1, List2 and List3 with columns USER_ID, YOUR_VALUE.

    You query the list for the specified user using this query:

    SELECT YOUR_VALUE FROM List1 WHERE USER_ID=<user id>
    

    Updating values:

    UPDATE List1 SET YOUR_VALUE=<value> WHERE USER_ID=<user_id>
    

    Deleting all values for a specified user:

    DELETE FROM List1 WHERE USER_ID=<user_id>
    

    Delete some values (depending on a condition) for a given user:

    DELETE FROM List1 WHERE USER_ID=<user_id> AND YOUR_VALUE=<value>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want to know if there is any provision that allows me to read
Is there any way to use Google's API to retrieve a user's current zipcode
Is there any provision in iOS wherein the referral parameters used to start the
Will there be any problem like cross site scripting if I make a provision
I wanted to do validation of xml in objective c. Is there any provision
Is there any provision in VS 2008 to enter symbol file path as WinDbg?
How can I reboot in c++? Is there any provision in WinSDK? What kind
Similar to jad entries in J2ME, is there any such provision in android?
Is there any way to set two surface views over each other so that,
Is there any functional difference in Python between a try statement and an if

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.