????????????????????
???????????? ???????[ 2014/1/20 13:19:15 ] ??????????????? ????
?????漰????????????????????????Щ????Щ?????????????????????????????????MySQL??????????????????????Oracle???????????MySQL?????????????????????????????????????????????????????????????????????????
??????? ??????????????????汾??
??????????????θ???????????????汾???С?
drop table if exists Tab_Version_Tab;
create table Tab_Version_Tab
(
Tab_Name char(40) not null?? #???? #
TrigVersion int null?? #?????汾??#
SourceVersion int null?? #??汾??#
LocalVersion int null?? #????汾??#
constraint pk_Tab_Version_Tab primary key(Tab_Name)
);
delete from Tab_Version_Tab;
insert into Tab_Version_Tab values("Demo1_Tab"?? 0?? 0?? 0);
????????????????£?
drop trigger if exists trig_insert_Demo1_Tab;
delimiter |
create trigger trig_insert_Demo1_Tab after insert on Demo_Tab
for each row
begin
update Tab_Version_Tab set TrigVersion=UNIX_TIMESTAMP() where Tab_Name = 'Demo1_Tab';
end;
|
delimiter ;
??????????????update??delete????????????????MySQL???????????for each row??Ч??????
??????

???·???
??????????????????
2023/3/23 14:23:39???д?ò??????????
2023/3/22 16:17:39????????????????????Щ??
2022/6/14 16:14:27??????????????????????????
2021/10/18 15:37:44???????????????
2021/9/17 15:19:29???·???????·
2021/9/14 15:42:25?????????????
2021/5/28 17:25:47??????APP??????????
2021/5/8 17:01:11