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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T15:38:13+00:00 2026-05-11T15:38:13+00:00

I currently have a table in MySQL that stores values normally, but I want

  • 0

I currently have a table in MySQL that stores values normally, but I want to add a field to that table that stores an array of values, such as cities. Should I simply store that array as a CSV? Each row will need it’s own array, so I feel uneasy about making a new table and inserting 2-5 rows for each row inserted in the previous table.

I feel like this situation should have a name, I just can’t think of it 🙂

Edit

number of elements – 2-5 (a selection from a dynamic list of cities, the array references the list, which is a table)

This field would not need to be searchable, simply retrieved alongside other data.

  • 1 1 Answer
  • 1 View
  • 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. 2026-05-11T15:38:14+00:00Added an answer on May 11, 2026 at 3:38 pm

    The ‘right’ way would be to have another table that holds each value but since you don’t want to go that route a delimited list should work. Just make sure that you pick a delimiter that won’t show up in the data. You can also store the data as XML depending on how you plan on interacting with the data this may be a better route.

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

Sidebar

Related Questions

I currently have 2 tables A table that stores all the different values(names) that
I'm trying to normalize a mysql database.... I currently have a table that contains
I have a table in MySQL 4.0 which currently has a year field as
I have a PHP application that stores PHP datetime to my MySQL table. I
Greetings, I have some mysql tables that are currently using an md5 hash as
I currently have a MySQL table like: id | friend 1 | 2 1
I currently have a very simple MySQL database (articlesDB) with 1 table (articles) and
I currently have a table structure that looks something like this(some details omitted): ColumnName
I have a MySQL Table that looks like this: The SQL to create the
I currently have a table that is 17 columns wide and has 30 records.

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.