Execute a Query and insert Rows to MySQL table

I am quite a novice with Make, and all I want to do is execute a SQL query on BigQuery and write the rows that are returns from that query into new rows into an existing MySQL table.
I have got the connections and mapping done, and it ‘runs successfully’ but nothing is loaded.
Do I need to have a step in between?
Its like it tries to put the whole query result into a single bundle, instead of keeping the rows.

Welcome to the Make community!

If the “whole query result” is an array, you need to put that array variable into an Iterator module.

Then, in your SQL module you will map the individual “row” data from the iterator.

Hope this helps! Let me know if there are any further questions or issues.

@samliew

3 Likes

magic - so simple when you know how! its working like a charm

1 Like

No problem, glad I could help!

1. If anyone has a new question in the future, please start a new thread. This makes it easier for others with the same problem to search for the answers to specific questions, and you are more likely to receive help since newer questions are monitored closely.

2. The Make Community guidelines encourages users to try to mark helpful replies as solutions to help keep the Community organized.

This marks the topic as solved, so that:

  • others can save time when catching up with the latest activity here, and
  • allows others to quickly jump to the solution if they come across the same problem

To do this, simply click the checkbox at the bottom of the post that answers your question:
Screenshot_2023-10-04_161049

3. Don’t forget to like and bookmark this topic so you can get back to it easily in future!

Here are some useful links and guides you can use to learn more on how to use the Make platform, apps, and app modules. I found these useful when I was learning Make, and hope they might benefit you too —

Getting Started

Help Centre Basics

Articles & Videos

Partner & Custom Apps

Hope this helps! Let me know if there are any further questions or issues.

@samliew