Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

195
Visualizações
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 à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda