MySQL Forums
Forum List  »  Connector/Node.js

Re: Inserting data into another table and getting it back into an array field in mysql
Posted by: Peter Brawley
Date: December 03, 2019 10:03PM

MySQL doesn't have "array fields".

Nor, since MySQL is a relational database system in which data atomicity is a basic principle, is it clear, from what you posted, how such columns would help you.

Since version 5.7, MySQL can process JSON data, and it supports JSON columns, but JSON columns are probably best used onloy where there's a specific need for such data structuring that's more important than the performance penalty that JSON exacts..

The query shown doesn't parse.

Generally, best practice is to write the entire requirement, then design the database and its tables, then from those two documents derive pseudocode for all defined app actions---all this before one writes a lick of code, so I'm having trouble understanding the fragments you've posted.

Options: ReplyQuote


Subject
Written By
Posted
Re: Inserting data into another table and getting it back into an array field in mysql
December 03, 2019 10:03PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.