×
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.
Is a SEQUENCE not a possibility ?
UPDATE thisTABLE
set RECCNT = next value for mySequence
where date1 > 20080000
-----Message d'origine-----
De : midrange-l-bounces@xxxxxxxxxxxx [mailto:midrange-l-bounces@xxxxxxxxxxxx] De la part de Mark Villa
Envoyé : vendredi 7 mars 2008 14:12
À : midrange-l@xxxxxxxxxxxx
Objet : Updating by row count in Interactive SQL
Hi all,
Any suggestions on how you would do this in interactive SQL?
UPDATE thisTABLE
counter = counter + 1
set RECCNT = counter
where date1 > 20080000
An example would be most appreciated. The above, obviously does not work.
The only two options I have in this case are SQL and UPDDTA record by record.
BTW, every now and then I see answers posted asking a good question - why would you want to do that? - the hard way? I suspect it is usually because we are working on a box with restrictions, no developer environment, etc.
When we are in our native environment these questions (with simple answers in another tool) don't pop up.
--
Mark
--
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing list To post a message email: MIDRANGE-L@xxxxxxxxxxxx To subscribe, unsubscribe, or change list options,
visit:
http://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxx Before posting, please take a moment to review the archives at
http://archive.midrange.com/midrange-l.
As an Amazon Associate we earn from qualifying purchases.