title: error when execute function pl/sql
body: <p>I wrote a function where I delete a line number in a table. I did not quite understand the error</p>
  
  <pre><code>DECLARE
  a integer ;
  
  CREATE OR REPLACE function f (j sejour.jour%type) return integer is 
  
  n integer 
  
  begin 
  
  select count(*) into n from sejour where jour &lt; j ;
  
  Delete Sejour where jour &lt; j ; 
  
  RETURN n ;
  
  end;
  BEGIN
    a:= 5;
  
    c := f(a);
   dbms_output.put_line(' Nombre est : ' || c);
  END;
  /
  </code></pre>
  
  <p>i have error : </p>
  
  <pre><code>ERROR at line 4:
  ORA-06550: line 4, column 1:
  PLS-00103: Encountered the symbol "CREATE" when expecting one of the following:
  begin function pragma procedure subtype type &lt;an identifier&gt;
  &lt;a double-quoted delimited-identifier&gt; current cursor delete
  exists prior
  </code></pre>