Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- Nome do procedimento: get_user_pass_from_id
- IN: in_id_funcionario
- INOUT: out_usuario
- INOUT: out_senha
- */
- create or replace procedure get_user_pass_from_id(IN in_id_funcionario INT, INOUT out_usuario VARCHAR, INOUT out_senha VARCHAR)
- language plpgsql as $$
- declare
- -- declaracao de variaveis
- begin
- -- corpo da procedure
- select username, password INTO out_usuario, out_senha
- from staff
- where staff_id = in_id_funcionario;
- end;
- $$
Add Comment
Please, Sign In to add comment