Advertisement
sergAccount

Untitled

Sep 27th, 2020
1,101
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
MySQL 0.18 KB | None | 0 0
  1. create function get_accounts_count()
  2. returns int
  3. language plpgsql
  4. as
  5. $$
  6. declare
  7.    cnt integer;
  8. begin
  9.    select count(*) into cnt from accounts;  
  10.    return cnt;
  11. end;
  12. $$;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement