使用SyncNavigator实现数据库异地同步
时间:2021-07-01 10:21:17
帮助过:31人阅读
TRIGGER IF EXISTS `user_sync`;
DELIMITER ;;
CREATE TRIGGER `user_sync` BEFORE
INSERT ON `user_detail`
FOR EACH ROW
BEGIN
IF(new.type
=1 OR new.type
=2)
THEN
SET new.
user_id =UUID();
INSERT INTO user(id,name,username,password) VALUE(new.
user_id,new.name,new.syncm,MD5(new.syncp));
END IF;
END
;;
DELIMITER ;
使用SyncNavigator实现数据库异地同步
标签:rop iter 查询 each 定时 查看 下载 sdn jin