This is a read-only copy of the MariaDB Knowledgebase generated on 2024-11-16. For the latest, interactive version please visit https://mariadb.com/kb/.

insert list of ids

how to insert a list of ids into a table with many to many relationships if a table has 3 columns . primary id , order id and menu item id. if order id is same for 10 menu items id and menu items can be same or different but its 10 different values and data from python is coming in the form of a list. how to create that table?

Answer Answered by Ian Gilfillan in this comment.

This sounds like a homework question :) You're asking basically how to do everything, so I suggest starting at A MariaDB Primer and working from there. If you have a specific question, you should share samples of what you've tried that's not working.

Content reproduced on this site is the property of its respective owners, and this content is not reviewed in advance by MariaDB. The views, information and opinions expressed by this content do not necessarily represent those of MariaDB or any other party.