任务描述
本关任务:
1.创建一个表table1,其中只有一列a。在表上创建一个触发器,每次插入操作时,将用户变量str的值设为“TRIGGER IS WORKING”。
2.向table1中插入一行数据(如:让列a的值为10)。
3.查看str的值。
编程要求
根据提示,在右侧编辑器补充代码。
开始你的任务吧,祝你成功!
USE petstore;
######### Begin #########
delimiter //
create procedure p2()
Begin
declare a float;
select listprice from product where name='閲戦奔';
end
//
call p2;
######### End #########