on 09-04-2017 3:26 PM
Estimados:
Necesito me ayuden.
actualmente cuento con un procedimiento el que me consolida atraves de la union de cuatros consultas que hace referencias a tablas de diferentes esquemas (BD), este procedimiento esta funcionando sin ningún problema.
Sin embargo internamente en el procedimiento tengo los nombre de los esquema por ejemplo:
CREATE PROCEDURE SBO_GIR_DISPONIBILIDAD_OFC LANGUAGE SQLSCRIPT AS begin
select * from FAMILIA.OACT T0
union all
select * from FAMILIA1.OACT T0
union all
select * from FAMILIA2.OACT T0
union all
select * from FAMILIA3.OACT T0;
end;
lo que necesito es que el procedimiento reciba los nombres por parametro, esto seria enviar FAMILIA, FAMILIA1, FAMILIA2, FAMILIA3.
Estaria muy agradecido por su ayuda.
Saludos
Humberto Cortez.
Santra Cruz - Bolivia
User | Count |
---|---|
98 | |
11 | |
11 | |
6 | |
6 | |
4 | |
4 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.