# 删除触发器代码
drop trigger 触发器名;# 当一个学员发生转班,班级对应的总数进行同步变化# 当一个学员发生转班,班级对应的总数进行同步变化delimiter !!create trigger movestudent after update on stu1 for each ROWBEGIN#定义两个变量declare numOld int; # 定义旧班级人数declare numNew int; # 定义新班级人数set numOld = (select stu_num from stu2 where class = old.class);select numOld into @a;set numNew = (select stu_num from stu2 where class = new.class);select numNew into @b;update stu2 set stu_num = numOld - 1 where class = old.class;update stu2 set stu_num = numNew + 1 where class = new.class;end !!
delimiter;update stu1 set class = 2302 where name = "阿涛";select @a;
select @b;drop trigger movestudent;
# 创建视图表
create view 视图名称 as select 已查询语句;# 查询当前数据库所有的视图
create view stu_2301 as
select * from stu1 where class = 2301;# 删除视图表
drop view 视图名称;# 查询当前数据库所有视图
# 格式
show full tables in 数据库名称 where table_type like "view";show full tables in demo924 where table_type like "view";
解题思路:
方法一:暴力
class Solution {public int maxProduct(int[] nums) {int max Integer.MIN_VALUE;int s 1;for (int i 0; i < nums.length; i) {s 1;for (int j i ; j < nums.length; j) {s * nums[j];max Math.max(max, s);}}ret…
Where can I catch a taxi?哪里我可以叫到出租车?
The taxi zone is right on the left corner over there.出租车站台就在左边转角处。
Are you free?您有空吗? Sure. Where are you going?当然。您要去哪里?
Drive me back to Santa …
有些场景可能kamdbctl create不好使,可能需要手工创建 kamailio database tables,可参考下面的命令序列: USE mysql # 删除之前创建的用户 SELECT user,host FROM user; DROP USER kamailio%; FLUSH PRIVILEGES; # 删除之前创建的数据库 DROP…