CREATE DEFINER=`root`@`localhost` PROCEDURE `getData`(deviceName varchar(45),startTime datetime,endTime datetime)
BEGIN

set @s1 = concat('SELECT * FROM ', deviceName , ' where view_time between ''' , startTime , ''' and ''' , endTime ,''' ;');
prepare s2 from @s1;
execute s2;
    
END

 

相关文章:

  • 2022-12-23
  • 2021-06-02
  • 2022-12-23
  • 2022-12-23
  • 2021-06-02
  • 2021-07-15
  • 2021-08-29
  • 2022-12-23
猜你喜欢
  • 2022-02-05
  • 2022-02-21
  • 2022-01-08
  • 2022-12-23
  • 2022-12-23
  • 2022-01-02
  • 2022-01-27
相关资源
相似解决方案