How to store data in an array in mysql function or procedure

How to store data in an array in mysql function or procedure? How to initialize an array in mysql? an array for example

array (1 => 1, b => 2) is it possible in mysql?

+3
source share
2 answers

You can store a PHP array in MySQL using the serialize () and unserialize () functions. serialize () converts any data, including arrays, to a string that can be converted back to its original value using unserialize ().

I am sure that other languages ​​have similar capabilities and methods.

The only thing you cannot parse and search with pure SQL.

+1
source

mySQL. SQL : -).

0

Source: https://habr.com/ru/post/1758003/


All Articles