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数据和数据条数.有没有其他办法????