mariadb fonction, procedure error You have an error in your SQL
问题 DELIMITER / CREATE FUNCTION filltimeDim () BEGIN DECLARE vQuarter VARCHAR(6); DECLARE vMonth_Name VARCHAR(20); DECLARE vdate_id date; DECLARE vyear_id CHAR(4); DECLARE vweekly_Name VARCHAR(20); DECLARE vMonth_Num TINYINT(10); DECLARE vweekday_Num TINYINT(10); BEGIN SET vdate_id = CONVERT('1998-01-01', DATE); WHILE (CONVERT('vdate_id' USING utf8) <= '2002-12-31') LOOP SET vyear_id = YEAR(vdate_id); SET vQuarter = QUARTER(vdate_id); SET vMonth_Name = MONTHNAME(vdate_id); SET vweekly_Name =