Prepared statements while fetching prepared statement
问题 I want to make a loop with one INSERT query for each fetched row from a previous query with prepared statements. In a more visual way: MAKE QUERY While Fetching - Make new query I can't close my statement since I need it to keep working... The problem is that when we use prepared statements, we have to fetch all data before doing a new prepare(). So, how could I do this? Maybe without statements, but it's not a nice solution. 回答1: You are going to kill your DB (and if you have a DBA your DBA