- CREATE DEFINER=`root`@`localhost` PROCEDURE `sp_select_reg`(In date1 varchar(50),In date2 varchar(50))
- BEGIN
- select * from `reg` where date > cast(date1 as datetime) and date < cast(vvsysdate as date2) ORDER BY date ASC;
- END
Two Dates Different values retrive
date values does't retrived correct vales from database .
my date format is dd/MM/yyyy
how can i solve this problem ?. please help me.
Prakash TripathiPosted Apr 7, 2016, 12:17 AM
STR_TO_DATE. You may follow more at below SO link.Rajeesh MenothPosted Apr 5, 2016, 6:33 AM
Prasanth RadhakrishnanPosted Apr 5, 2016, 6:22 AM