最佳答案
如果我有两个结构相同的表,我怎样才能将一组行从一个表移动到另一个表?
行集将从选择查询中确定。
例如:
customer table
person_id | person_name | person_email
123 tom tom@example.com
persons table
person_id | person_name | person_email
一个样本选择是:
select * from customer_table where person_name = 'tom';
我要将该行从 customer 表移动到 person 表
理想情况下,从原始表中删除数据,但这不会破坏交易。