×
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.
<snip>
And the simple act of imagining how a prepared statement could possibly
be halfway-practical for making SQL mimic the behavior of RLA when
absolutely nothing about the file is known at compile-time makes my
brain hurt.
</snip>
I tend to think the opposite. Having to create all the logicals and
whatnot to do a variety of Order By's, Where's, etc using RLA versus how
easy it is to do with SQL makes my head hurt.
Many of us, when faced with this problem in SQL tend to prepare statements
like this
where
(colA between ? and ?) and
(colB between ? and ?) and
...
And the variables can be quite flexible. High values, low values, The
same, for example
execute stmt using :RpgVar1, :RpgVar2, :RpgVar3...
if you want an equal there's nothing stopping you from having RpgVar1 set
to RpgVar2
See prepare statement, execute
in the Infocenter.
Rob Berendt
As an Amazon Associate we earn from qualifying purchases.
This thread ...
Re: JDBCR4 question -- Checking the syntax of a query without crashing the JVM, (continued)
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.