我写了一个储存过程,这是截图
这个是代码
BEGIN
#Routine body goes here...
SELECT * FROM test2 t2 WHERE t2.name = name;
-- 创建视图
if exists (SELECT 1 FROM text.views WHERE name = 'view_test2') then
DROP VIEW view_test2;
END if;
#create view view_test2
#AS
# SELECT * FROM test2;
#select *from test2;
END
我运行的时候报错,说是红色标明的表未找到,
是什么原因呢?