Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

189
Vistas
Temporally store array in Mysql

So initially I had created a global (I know xd), array where I stored around 600 ~25 chars strings. The array for sure wont get bigger than that. So my question is how to store temporally such an array in Mysql.

I would have used VARCHAR(255) and store it as a string but due to the size I cant. I also though of JSON type, but, at least for me, didn't seem good. Now what am thinking of doing now is;

Since I know that each element in the array will be unique, create a table with 1 column, store them there in many rows, and when done delete the table.

Is that a good/efficient approach or perhaps am missing something out

edit: I forgot to add that the reason i have to store the array, is cause I will need it for a few days and so I cant afford to lose the data in case of a script fail, therefore storing.

over 4 years ago · Santiago Trujillo
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda