mysql - Error: Incorrect syntax near the keyword 'RETURN'.SQLState: S0001ErrorCode: 156 when working with Squirrel client -
iam trying write pl/sql function in squirrel client. when iam tryin excute script in squirrel getting error. please me im new squirrel client.
script:
create function totalholiday return int total int:= 0; begin select count(*) total dbo.holiday; return total; end; /
error: incorrect syntax near keyword 'return'. sqlstate: s0001 errorcode: 156 error occured in: create function totalholiday return int total int:= 0
i tried giving instead of did'nt work..
in sql tab in session properties dialog change statement separator ;
/
.
Comments
Post a Comment