Answer by Rick James for Error 1064 - You have an error in your SQL syntax;
You are working much too hard. A single statement does all the work:INSERT INTO tblfeedbackdashbd (AverageScoresAday, Date) SELECT SUM(avg_score) / COUNT(*), CURDATE() FROM tblcustomfeedback WHERE...
View ArticleAnswer by ypercubeᵀᴹ for Error 1064 - You have an error in your SQL syntax;
The syntax is not:SELECT id INTO @x, data INTO @y ...but it is:SELECT id, data INTO @x, @y ...Use:SELECT SUM(avg_score), COUNT(Id) INTO averageScore, IdCountFROM ... ;
View ArticleAnswer by hussainfrotan for Error 1064 - You have an error in your SQL syntax;
You have not declared count variable first,add DECLARE count INT 0; right after BEGIN
View ArticleError 1064 - You have an error in your SQL syntax;
I am new to developing field, and I have encountered an error while creating a trigger.Could anyone please figure out what is the error?DELIMITER $$CREATE TRIGGER update_feedback_dashboardAFTER...
View Article
More Pages to Explore .....