Apache NiFi - Version HDF-184.108.40.206-579
Use the PutSQL and ExecuteSQL processors. You can read more about them and their usage at the below link.
You can configure them as below:
Also, to get a better idea of how to chain the processors, take a look at the below article for an example flow that ingests data into a relational database using Nifi.
As always, if you find this post helpful, don't forget to "accept" answer