CREATE DEFINER=`root`@`localhost` PROCEDURE `showcp`(in userid varchar(30) )
BEGIN
select c.userid,c.title,c.logo from companyuser c where userid in (select subuserid from companyrelations b where b.userid=userid);select count(8) from companyuser c where userid in (select subuserid from companyrelations b where b.userid=userid);
end;怎么调用这个存储过程的数据 我就是想同时得到LIST数据和数据条数.有没有其他办法????
BEGIN
select c.userid,c.title,c.logo from companyuser c where userid in (select subuserid from companyrelations b where b.userid=userid);select count(8) from companyuser c where userid in (select subuserid from companyrelations b where b.userid=userid);
end;怎么调用这个存储过程的数据 我就是想同时得到LIST数据和数据条数.有没有其他办法????
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货