Fórum Stored Procedures que retornem um DataSet #30809
30/08/2006
0
PARAMETERS [CODCLI INTEGER]; SELECT * FROM CLIENTES WHERE CODIGO = [CODCLI];
ENTÃO ELE ME RETORNA UM RECORDSET DO CLIENTE ESCOLHIDO.
EU NÃO CONSEGUI ACHAR NADA PARECIDO NO MYSQL SO ACHEI COMO USAR O STORE PROCEDURE PARA FAZER ALGUM PROCESSAMENTO NAS TABELAS.
SE ALGUEM PUDER ME AJUDAR A COMO FAZER ISSO EU AGRADEÇO.
Mardoqueu
Curtir tópico
+ 0Posts
18/11/2006
Wagnerbianchi
Tente isso:
create procedure teste(IN var1 int, IN vr2...) begin select campo1, campo2, campo-n from cliente where <expression...> order by ... end;
Olha isso tambem: http://dev.mysql.com/doc/refman/5.0/en/stored-procedures.html
Seu caso e simples, de uma estudada nese link e conseguira facil!
Qualquer duvida continue postando. :wink:
Gostei + 0
20/11/2006
Mardoqueu
create procedure teste(IN var1 int, IN vr2...) begin select campo1, campo2, campo-n from cliente where <expression...> order by ... end;
Gostei + 0
21/11/2006
Wagnerbianchi
Gostei + 0
Clique aqui para fazer login e interagir na Comunidade :)