mysql - Delete all records from each table having a specific column value -


  1. find every table in same database has field client_id
  2. delete records client_id = 123

above scenario. i'm wondering if it's possible using mysql single query.

you don't know names of tables client_id field, can found using informational schema , stored in temporary table. then, dynamic query should generated in loop delete required records. that.


Comments

Popular posts from this blog

twig - Using Twigbridge in a Laravel 5.1 Package -

jdbc - Not able to establish database connection in eclipse -

firemonkey - How do I make a beep sound in Android using Delphi and the API? -