Advertisement
Guest User

Untitled

a guest
May 27th, 2018
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.70 KB | None | 0 0
  1. create or replace package testy is
  2. function pw(id_stud studenci.id_student%type) return varchar;
  3. procedure p2(id_stud IN studenci.id_student%type);
  4. end testy;
  5. / <-------------------
  6. create or replace package body testy is
  7.  
  8. function pw(id_stud studenci.id_student%type)
  9. return varchar
  10. is
  11. begin
  12. UPDATE studenci
  13. set imie=upper(imie),nazwisko=upper(nazwisko)
  14. where id_student=id_stud;
  15. return 'dane zmodyfikowane';
  16. end pw;
  17.  
  18. procedure p2(id_stud studenci.id_student%type)
  19. is
  20. begin
  21. UPDATE studenci
  22. set imie=upper(imie),nazwisko=upper(nazwisko)
  23. where id_student=id_stud;
  24. end p2;
  25. end testy;
  26. / <------------------------
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement