I am trying to port some code from MS-SQL to MySQL and there is this code that declares a variable and then executes some select statements - it looks like:
USE MarketDB;
GO
DECLARE @Q0 VARCHAR(16);
DECLARE @Q1 VARCHAR(16);
SET @Q0 = '05/30/2008'
SET @Q1 = '08/29/2008'
Now I try to convert this to MySQL and fail totally. Why does the following fail with a syntax error?
DELIMITER ;//
BEGIN
DECLARE Q0 VARCHAR(16);
SET Q0 = '05/30/2008';
END;
;//
DELIMITER ;
Thanks!