mysql自动更改表 [英] mysql auto change tables

查看:61
本文介绍了mysql自动更改表的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我自动更改其他表时,如何强制Mysql更改某些表?就像当我添加一个字段或创建一个表时,它会自动添加到表information_schema

how can I force Mysql to change some of my tables when I change the others automatically? like when I add a field or create a table it's automatically added to table "information_schema"

推荐答案

如果您没有其他解决方案尝试使用每个指定时间段发生的事件检查你想知道的变化然后做你想要的事情

例如

创建一个每周发生的事件并检查数据库中是否有新表然后插入它在information_schema表中
if you had no other solution try using events that occure every specified period and check for changes you want to know about then do what you want
for example
create an event that occures every week and checks if there is new table in database then inserts it in your "information_schema" table


这篇关于mysql自动更改表的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆