存储过程创建语句: CREATE DEFINER=`root`@`%` PROCEDURE `pro_index_data`(IN `areaCode` varchar(50),OUT `deviceSum` int,OUT `abnormal` int,OUT `areaSum` int) BEGIN if areaCode is not NULL then select count(id) from dma_device_info where device_type=-1 and FIND_IN_SET(area_pid,areaCode)>0 into deviceSum; ...