📜  如何在mysql代码示例中声明变量日期

📅  最后修改于: 2022-03-11 15:05:23.885000             🧑  作者: Mango

代码示例1
set @report_date = '2013-01-17 00:00:00';

SELECT  *
  FROM `NMPP`.`capacitypersecond` 
  WHERE `StreamDT` >= @report_date and `StreamDT` < '2013-01-18 00:00:00'  ;