plsql - Sql Return Statment Getting encountered symbol error -


this store procedure returning error cant see find problem:

error(20,1): pls-00103: encountered symbol "end" when expecting 1 of following: . ( * @ % & = - + ; < / > @ in mod remainder not rem <> or != or ~= >= <= <> , or like2 like4 likec between || multiset member submultiset

create or replace procedure sp_currancyofproject(v_assyid number) temp number := 0; begin  select scope_id       temp      tbl_revisions      assy_u_id = v_assyid; select project_id       temp      tbl_scope      scope_u_id = temp; select currancy_multipier      temp      tbl_currancy      project_id = temp;  return temp; end; 

you cannot return value procedure.

you should use function return value.

create or replace function fn_currancyofproject(v_assyid number) return number  temp number := 0;  begin   -- code logic substituting temp variable.  return temp;  end; 

Comments

Popular posts from this blog

qt - Using float or double for own QML classes -

Create Outlook appointment via C# .Net -

ios - Swift Array Resetting Itself -