×
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.
SQL does not work this way.
The Select is not like a rpgle "chain" and that record stays in memory, with
record locked for the "update".
The update statement needs the same where clause to get the same record to
update.
Based on the where clause, your update statement could update one or more
records...
Jim Franz
----- Original Message -----
From: "Marc Couture" <couturem@xxxxxxxxxxx>
To: "RPG programming on the IBM i / System i" <rpg400-l@xxxxxxxxxxxx>
Sent: Sunday, October 10, 2010 8:52 PM
Subject: SQL Insert Into
I'm running into a small issue, and no clue how to fix it.
After a :
Insert Into WorkFile
Select *
From Orders
Where OrdNo = 100750
Then
Update WorkFile
Set Status = 'DELETE'
I know the insert found one record, but the update statement didn't found
the record, it is probably stuck in the buffer, any idea how to force the
write to the media ?
Thanks
"If you think education is expensive, try ignorance"
(Derek Bok, pres. of Harvard Univ. 1971-1990)
As an Amazon Associate we earn from qualifying purchases.