Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

3
  • thanks. this didn't return any error. How can I print the value of the variable? print @a is not working. Also, how to perform mathematical operations? @a=@a+1 does not work. Commented Aug 12, 2021 at 19:11
  • what is 'stored procedure'? Commented Aug 12, 2021 at 19:12
  • Tutorial: mysqltutorial.org/mysql-stored-procedure-tutorial.aspx Commented Aug 12, 2021 at 19:13