You have an error in your SQL syntax when creating a procedure. MYSQL -


When I try to make a process, I get that error. I do not know whether it has failed and if someone There is a single error in comparison to me, but I make a mistake on the delimiter, and I think I have his right.

"There is an error in your SQL syntax, check the manual related to your MySQL server version for the correct syntax for near use ') SELECT SUM (robatori.quantitat_robada) from Robotry WHERE param1 = My question is next: DELIMITER // CREATE PROCEDURE ROBATORY (paragraph 1 at VARARA) SELECT SUM (robatori.quantitat_robada) with robotry WHERE Param1 = jugador_ladre; // DELIMITER;

Thank you to all, this is my first question here. :

You are missing the length for the input code on VARCHAR

Change it like the following:

  DELIMITER // processing robotir making (at work (255) SELECT SUM (robatori.quantitat_robada) from robotry Where param1 = jugador_ladre; // DELIMITER;   

As you have the only statement to execute, the BEGIN - END block was optional.
But it is advisable to practice it in all cases.

  DELIMITER // CREATE PROCEDURE ROBATORY (Ultimate 1 VARCHAR (255)) Start (robatori.quantitat_robada) from Robotry WHERE param1 = jugador_ladre; End; // DELIMITER;    

Comments

Popular posts from this blog

Java - Error: no suitable method found for add(int, java.lang.String) -

java - JPA TypedQuery: Parameter value element did not match expected type -

c++ - static template member variable has internal linkage but is not defined -