mysql触发器里怎么写运算和条件语句

IF条件语句:begin update huxing if(new.户型=‘平层’)then declare a int(5);set a =select 租平层数量 from huxing;set 租平层数量=a+1;end if;end
mysql触发器里怎么写运算和条件语句
IF条件语句:
begin
update huxing
if(new.户型=‘平层’)
then
declare a int(5);
set a =select 租平层数量 from huxing;
set 租平层数量=a+1;
end if;
end2016-12-12
mengvlog 阅读 422 次 更新于 2025-10-29 05:10:38 我来答关注问题0
檬味博客在线解答立即免费咨询

mySQL相关话题

Copyright © 2023 WWW.MENGVLOG.COM - 檬味博客
返回顶部