|
Interesting question overall...
There is support writing multiple records at one time in db2 SQL. If you
just had a string, you could do something like this:
INSERT INTO QTEMP/MAK (TEST1) VALUES (substr('1234567890abcdefghij',1,10)), (substr('1234567890abcdefghij',11,10))
But, I can't figure out how to use a select statement to drive multiple
values.
Googling finds several references to folks that have tried creating multiple
records from a single record (for example, separating a comma delimited list
into separate records). They all look quite "messy". Creating a function or
some kind of temporary table might be an answer. There seem to a couple of
"split" functions that folks have created that would have potential.
If you don't get an answer here, try Howard Arner or Ted Holt at
itjungle.com. They both seem to relish a SQL challenge.
Mike
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.