Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SQL

how to declare variable date in mysql

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'  ;
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #declare #variable #date #mysql
ADD COMMENT
Topic
Name
4+7 =