create function hello
(
   s varchar(20)
)
   returns varchar(50)
begin
   select count(*) into @v from tb;  -- note : @v is a user variable   return concat('hello',s,'!');
end