sql - Error with mysql procedures ERROR 1304 & ERROR 1305 -


I'm new to using processes and I do not seem to be working for my use of MySQL v5.1.36 I am using and using my code on a WAMPP server using MySQL Console. If I'm making the (again) process I get error # 1304 (42000).

  mysql> DELIMITER // mysql & gt; Mysql & gt; Create method modx.getCRID (X XARAR (255), outside and INT) - & gt; BEGIN - & gt; DECLARE y INT; - & gt; Select in Y - & gt; From `Modx`.coverage_region - & gt; Where `coverage_region` name = x; - & gt; END // Error 1304 (42000): The action getCRID already exists in mysql & gt; Mysql & gt; DELIMITER;  

However, if I try to use the process, I get error # 1305 (42000).

  mysql> Use the modax; MySQL and gt; SET @crID = modx.getCRID ("southeast"); Error 1305 (42000): function modx.getCRID does not exist  

If the process exists for one, then how can it not exist for another?

  1. I believe that there are problems

The first error occurs because you have an existing process Trying to recreate If you wanted to leave the process before, you do not get this error,
  • The second error is that the processes are applied with a call statement, while the function is in reference to the function reference is applied. You must not define a procedure, there is no action () to say:
  • To support the UDF (User-Defined Function) also the CREATE FUNCTION statement in MySQL is used to. See Section 21.2, "Adding New Functions to MySQL" An UDF can be considered as an external archive function. Archived works share their namespace with UDF.

    To open a stored procedure, use the call statement (see section 12.2), section 9.2, "Function name parsing and resolution", for the rules, see how the server performs different types of functions. Explains the context. .1, "call syntax"). To open the stored function, view it in Expression function gives a value during the expression evaluation.


    Comments

    Popular posts from this blog

    Eclipse CDT variable colors in editor -

    AJAX doesn't send POST query -

    wpf - Custom Message Box Advice -