存储过程局部变量赋值
declare gold int default 2;
#不同方式:
set gold = 100;
select table_gold into gold from accountinfo where UserID = 520;

要把数据库查出来的数据赋值给局部变量,使用into


首页 我的博客
粤ICP备17103704号