Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在创建两个网站。这两个网站的共同点是公司表。我想要做的是:如果一个公司表被更新,另一个公司表也相应地更新。
两个数据库都在同一台服务器上。
最好的方法是什么?(由于我使用的框架类型,无法通过代码执行此操作。)
我更喜欢数据库级别的解决方案。
MySQL 可以跨两个不同的数据库连接表,所以也许你可以摆脱一个表。否则,触发器对于保持两个表同步很有用。