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.
我首先创建了 2 个表。后来我意识到我需要在两者之间添加 M:M 关系,所以我创建了一个联结表并在表之间创建了必要的关系。我遇到的问题是,在创建联结表后,它不会自动填充其他 2 个表中的数据。是否应该自动从其他表中提取这些数据,还是我遗漏了什么?
除非您明确地INSERT进入连接表,否则它不会进入那里。
INSERT
当然,您可以潜在地triggers用于您想要实现的目标。
triggers