mobilefish

Untitled

May 19th, 2021 (edited)
328
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.37 KB | None | 0 0
  1. -- PROCEDURE: testschema.hldprocess(integer)
  2.  
  3. -- DROP PROCEDURE testschema.hldprocess(integer);
  4.  
  5. CREATE OR REPLACE PROCEDURE testschema.hldprocess(
  6. INOUT v_tbad integer)
  7. LANGUAGE 'plpgsql'
  8. AS $BODY$
  9. BEGIN
  10. -- testschema.sample_id is a sequence and sample is a table
  11. perform setval('testschema.sample_id', (select max(sample_id) from testschema.sample));
  12.  
  13. end;
  14. $BODY$;
Add Comment
Please, Sign In to add comment