Jump to content

Prepared Statements - multiple queries?


wincen

Recommended Posts

Is it possible to execute a prepared statement that does multiple queries?

 

For example, say I need to delete a user from my database.  I would need to delete all his child records.  In a stored procedure typically I would delete all the child records, like messages from the user, then i would delete the actual user record.

 

With a prepared statement can I do the same, if so how?  Otherwise would I need to run multiple prepared statements to do the same?

Link to comment
https://forums.phpfreaks.com/topic/93211-prepared-statements-multiple-queries/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.