procedimiento almacenado que no devuelve nada
Publicado por VictorDevelop (2 intervenciones) el 26/02/2024 19:17:49
Tengo este procedimiento almacenado que no devuelve ningún valor y sé que la consulta select si devuelve lo que necesito,trabajo con pgAdmin4.
Este es el código:
Este es el código:
1
2
3
4
5
6
7
8
9
10
11
12
CREATE PROCEDURE MUESTRA_CLIENTE(ID_CLIENTE INT)
LANGUAGE SQL
AS $$
SELECT DISTINCT
res_partner.name as NOMBRE,
res_country.name as PAÍS ,
res_country_state.name as PROVINCIA
from res_partner,res_country,res_country_state
where res_partner.id=ID_CLIENTE and
res_partner.state_id=res_country.id and
res_partner.country_id=res_country_state.id
$$;
Valora esta pregunta


0