"RPG400-L" <rpg400-l-bounces@xxxxxxxxxxxx> wrote on 01/17/2018 11:33:35
AM:
I have to update a file field whose name will be known at run time
can we use " For update of :field" clause if yes please let me know
how to do that.

A colon is not allowed in the unprepared SQL statement. Parameter
placeholders (?) are all that are allowed for dynamically supplying values
to an SQL statement. Notice I said "supplying values". This means
placeholders cannot be used to supply the names of tables, views, columns,
etc. So, in your case, if the clause cannot be specified at prepare,
execute, or open time, then it needs to be supplied as a character string
only (meaning: use RPG concatenation) when the unprepared SQL statement is
being built.


Sincerely,

Dave Clark

As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

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.