Syntax error in Procedure Mysql

Asked

Viewed 162 times

0

I have the following Stored Procedure. When executing it in is returned the error of sinxtaxe 1064 as in the image below.

inserir a descrição da imagem aqui

What am I missing ?

  • is normal the END is in red?

  • 1

    Post the actual code and the text error. This cropped image helps neither visualization nor testing. Copy and paste, and use the button { } to format as code.

1 answer

0

Hello!! Try changing the end of the mysql statement

For example:

DELIMITER $$ CREATE PROCEDURE nome_procedimento () BEGIN /*CORPO DO PROCEDIMENTO*/ END $$ DELIMITER ;

In this part:

END $$ DELIMITER ;

:)

Browser other questions tagged

You are not signed in. Login or sign up in order to post.