How to loop through all the tables on a database to update columns

前端 未结 3 1310
别那么骄傲
别那么骄傲 2021-01-12 03:59

I\'m trying to update a column (in this case, a date) that is present on most of the tables on my database. Sadly, my database has more than 100 tables already created and f

3条回答
  •  情话喂你
    2021-01-12 04:50

    Assuming you are using MySQL, You can use Stored Procedure.

    This post is a very helpful.

    Mysql-loop-through-tables

提交回复
热议问题