1. 视图 创建视图 create view 视图名字 as 查询sql语句; drop view 视图名字; alter view 视图名字 as 查询sql语句; 2. 触发器 1. 插入事件触发器 INSERT INTO order_table(gid,much) VALUES(1,3); -- update goods set num = num -3 where id =1; CREATE TRIGGER tg1 AFTER INSERT on order_table for EACH…