病案同步状态修改

--第一步  将同步状态改成0,即将病人改成未同步的状态
update T_EMR_SYNCHRONOUSCASERECORD t set t.status='0' where t.status='1'; --全表转换
update T_EMR_SYNCHRONOUSCASERECORD t set t.status='0' where t.status='1' and t.registerid_chr='000000101091'; --指定病人转换

--第二步  删除中的测试数据
delete from T_EMR_SYNCHRONOUSCASERECORD;  --全表删除
delete from T_EMR_SYNCHRONOUSCASERECORD t where t.registerid_chr='000000101091';--指定病人删除

--第三部  查看是否已经清空

select t.*, t.rowid from T_EMR_SYNCHRONOUSCASERECORD t;

select t.*, t.rowid from T_EMR_SYNCHRONOUSCASERECORD t where t.registerid_chr='000000101091';--指定病人查看;

你可能感兴趣的:(病案同步状态修改)