update pre_common_member_count,cdb_members set pre_common_member_count.oltime=pre_common_member_count.oltime+cdb_members.oltime where pre_common_member_count.uid=cdb_members.uid and pre_common_member_count.oltime < cdb_members.oltime and pre_common_member_count.oltime < 144;
复制代码
命令2
update pre_common_member_count,cdb_members set pre_common_member_count.oltime=pre_common_member_count.oltime+144 where pre_common_member_count.uid=cdb_members.uid and pre_common_member_count.oltime < cdb_members.oltime and pre_common_member_count.oltime >=144;
复制代码
经查,有可能是另外一个变量有问题,再测试
update pre_common_onlinetime,cdb_onlinetime set pre_common_onlinetime.total=pre_common_onlinetime.total+8400 where pre_common_onlinetime.uid=cdb_onlinetime.uid and pre_common_onlinetime.total < cdb_onlinetime.total and pre_common_onlinetime.total >8400;
update pre_common_onlinetime,cdb_onlinetime set pre_common_onlinetime.total=pre_common_onlinetime.total+cdb_onlinetime.total where pre_common_onlinetime.uid=cdb_onlinetime.uid and pre_common_onlinetime.total < cdb_onlinetime.total and pre_common_onlinetime.total < 8400;