Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- create function get_accounts_count()
- returns int
- language plpgsql
- as
- $$
- declare
- cnt integer;
- begin
- select count(*) into cnt from accounts;
- return cnt;
- end;
- $$;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement