Quantcast
Channel: Error 1064 - You have an error in your SQL syntax; - Database Administrators Stack Exchange
Browsing all 4 articles
Browse latest View live

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 Article



Answer 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 Article

Answer 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 Article

Error 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
Browsing all 4 articles
Browse latest View live




Latest Images