我有几个继承表:
productsmartphonetablet
表smartphone和tablet继承自product.
假设我在表中添加了一条记录smartphone,但后来我想将该记录移动到表中tablet。我需要保留所有外键、ID 和字段集。有可能吗?
我有几个继承表:
productsmartphonetablet表smartphone和tablet继承自product.
假设我在表中添加了一条记录smartphone,但后来我想将该记录移动到表中tablet。我需要保留所有外键、ID 和字段集。有可能吗?
事实证明,将类型更改的记录从一个表移动到另一个表没有任何问题。如果你做这样的事情,我建议将构造包装在事务中。