心殇竹墨轩 2016-06-02 03:15 采纳率: 0%
浏览 10790

mysql存储过程数组或集合使用

使用mysql存储过程,如何把查询出来的集合复制个变量。 #select adminAccountId into _acId from adminaccountgroupmember where adminAccountGroupId=ag_id;
set _acId=(select adminaccountId from adminaccountgroupmember);
select COUNT(_acId) into @count;
select _acId;

  • 写回答

0条回答 默认 最新

    报告相同问题?