How to store data in array in mysql function or procedure? How to initialize array in mysql? array like
array(1=>1,b=>2) is it possible in mysql?
How to store data in array in mysql function or procedure? How to initialize array in mysql? array like
array(1=>1,b=>2) is it possible in mysql?
You can not declare a array in mySQL. In SQL an array is called a table :-).
You are able to store an PHP array in MySQL using the functions serialize() and unserialize(). serialize() converts any data including arrays to a string which can be converted back to the original value using unserialize().
I'm sure there are similar possibilities and methods in other languages.
The only con is that you aren't able to parse it and search through it with pure SQL.