SQL
x
SET @pmonthbegin=DATE_FORMAT(CURDATE() - INTERVAL 1 MONTH,'%Y-%m-01'),
@nmonthbegin=DATE_FORMAT(CURDATE() , '%Y-%m-01'),
@pmonthts=REPLACE(@pmonthbegin,"-",""),
@nmonthts=REPLACE(@nmonthbegin,"-","")
SELECT "test";
By running queries you agree to the Cloud Services Terms of Use and you irrevocably agree to release your SQL under CC0 License.
All SQL code is licensed under CC0 License.