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.

see the mysql doc on stored procedures


Comments

Popular posts from this blog

c# - SharpSVN - How to get the previous revision? -

c++ - Is it possible to compile a VST on linux? -

url - Querystring manipulation of email Address in PHP -