×
The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.
Help needed. I have researched this but cannot find a definitive answer.
I am trying to generate a dynamic SQL INSERT using SQL descriptors.
I have built the SQL string with parameter markers, prepared the statement, allocated and described the SQL descriptor.
Now I want to use the SET DESCRIPTOR to define the fields within the SQL.
exec SQL
set descriptor :Desc_n
value :parmNo
type = :Data_Type,
length = :Data_Len,
data = :XXXXXX;
The part I am stuck on is the 'data' parameter. This seems to insist on a local variable and will not accept an array element. The reason I need the array is that is contains all field names that should be contained within the SQL INSERT Statement. If I have to specifically name a field the dynamic seems to have disappeared.
I must be wrong somewhere!!
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2024 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.