|
On Wed, Mar 14, 2018 at 1:35 PM, Alan Campin <alan0307d@xxxxxxxxx>wrote:
statement,
Create Variable is very slow. Hope you are not calling this much.I am calling a SQL procedure with input parms.
Why use an SQL procedure instead of using an SQL RPG service program?
in the SQL procedure I want to create a new table from a select
where the "where" clause of that select uses the input parms:table
CREATE or replace PROCEDURE demoProc(
in inCompanyCode char(2)
)
Create table steve1 as (
select * from custmast
where companyCode = inCompanyCode )
with data ;
But I cannot do this. Cannot have substitution variables in a create
as statement.
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2025 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.