MySQL Forums
Forum List  »  Source, Builds, Binaries

Error: 1064, when create function in Query Browser
Posted by: Abraham Padilla
Date: September 14, 2006 09:42AM

I have MySql 5.0

If someone can help me.

Code:

CREATE FUNCTION DB.fnMultiplica(i int, j int) RETURNS int(11)
begin
declare mul int; #Error here
set mul = i * j;
return mul;
end

Error:
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'int' at line 3

Options: ReplyQuote


Subject
Views
Written By
Posted
Error: 1064, when create function in Query Browser
5057
September 14, 2006 09:42AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.