Here is my code:
DELIMITER $$
begin
declare var a int;
set a="select biology from app.students where studname="ganesh";
select concat('the student name is' a);
end$$
I want to create storeprodure in mysql for java. In the above code i gave anything after begin it shows error. I am not well in stored procedure.
'ganesh'";concat('the student name is', a):