MySQL work log - add fields to the same prefix table in the same prefix library

need

Encountered a problem, you need to add a field to a type of log table. When there are few log tables, you can also modify the table structure to achieve, but when there are many such log tables (hundreds of log tables), how to Realize it?

accomplish

When there are many tables, it can be implemented through stored procedures, as follows:

# use the process

 

Guess you like

Origin blog.csdn.net/zhoupenghui168/article/details/132459313