Mysql觸發器

觸發器是一類特殊的事務 ,能夠監視某種數據操作(insert/update/delete),並觸發相關操作(insert/update/delete)。 看下面事件: 完畢下單與降低庫存的邏輯 Insert into o (gid,num) values (2,3);  // 插入語句 Update g set goods_num = goods_num - 3 where id = 2;// 更
相關文章
相關標籤/搜索