是否可以在程序中使用 'as' 关键字

Is it possible to use 'as' keyword with procedures

大家好,我在 mysql 中做了一个过程,我想知道是否可以在 begin 语句

之前使用 as 关键字

我的代码

create procedure avinash (in hon int)
as alias
begin
select * from customers;
end//

当我使用 error 时出现错误,当我删除 as 关键字时它工作得很好。

有没有我可以使用 as 关键字的选项。我只是问 mysql 中是否有可用的选项。

感谢帮助..

没有

如果您打算使用 as 为存储过程定义别名以便能够将其称为 call alias,那么答案是否定的。您不能以这种方式使用 ascreate procedure 的语法不允许。

您可以使用调用第一个的别名创建另一个过程(但有什么意义呢?)。