客户信息:
姓名:张三
地址:北京海淀区中关村XXX
电话:66666666
1月2日 地址被修改为:北京朝阳区国贸大厦xxx
5月1日 电话变更为:88888888
客户希望能够提供对其系统数据的历史情况进行查询,应该如何进行设计?
客户希望能够提供对其系统数据的历史情况进行查询,应该如何进行设计?
类似这样的应用,如何进行通用数据日志设计?
条件和你update的一样的
比如是:
insert into history(custom_id,custom_status,phone,previous_phone)
select custom_id,custom_status,(新的电话),phone(旧的电话) from
custom_buy
where custom_id in(select custom_id from
custom_buy where sum(buy_money)>=1000)