mysql - What is wrong with this stored procedure? -
i keep getting error below mysql sp ideas?
create procedure productpricing(
out pl decimal(8,2), out ph decimal(8,2), out pa decimal(8,2) ) begin select min(amount) pl card error code: 1064 have error in sql syntax; check manual corresponds mysql server version right syntax use near '' @ line 9 0.000 sec
drop procedure if exists productpricing; create procedure productpricing( out pl decimal(8,2), out ph decimal(8,2), out pa decimal(8,2) ) begin select min(amount) pl card; end;
did define delimiter?
try adding delimiter //
before create procedure
statement. replace end;
end;//
. checked , works me.
Comments
Post a Comment