示例:
create table t1(a int,b char(20));
drop procedure if exists haha;
delimiter $$
create procedure haha()
begin
declare x type of t1.a;
set x=1;
select x;
end$$
delimiter ;
MariaDB/MySQL中的变量(3)
内容版权声明:除非注明,否则皆为本站原创文章。
转载注明出处:https://www.heiqu.com/6c78fe36a27b468dee81aa00f33123b1.html