CREATE DEFINER=`admin`@`%` PROCEDURE `USP_kider`(v_date1 DATETIME,
v_date2 DATETIME)
BEGIN
drop prepare...
PREPARE stmtxxx FROM 'select * from table_kider where s_date >? and s_data< ?';
SET @startTime = v_date1;
SET @endTime = v_date2;
EXECUTE stmtxxx USING @startTime,@endTime;