|
View previous topic :: View next topic
|
| Author |
Message |
emonmisra
New User

Joined: 10 Jul 2006 Posts: 7 Location: Bangalore
|
|
|
|
The queries are as follows:
Declaring the cursor
Declare C-SEL10 Cursor FOR
SELECT B.RBVOR_VORGANG, C.RBNEW_ACCNT_UID
FROM RBCBAT A,
RBVORT B,
RBNEWT C
WHERE B.RBVOR_VORGANG = A.RBCBA_VORGANG
AND B.RBVOR_MANDINT = A.RBCBA_MANDINT
AND B.RBVOR_SELDAT = A.RBCBA_SELDAT
AND A.RBCBA_UID = C.RBNEW_ACCNT_UID
FOR UPDATE OF C.RBNEW_ACCNT_UID
then using the above cursor delete after fetch
DELETE FROM C
WHERE CURRENT OF C-SEL10
In this case in binding I am getting the SQLCODE = -510
Please suggest how to proceed |
|
| Back to top |
|
 |
rajaherein
New User
Joined: 11 Jan 2007 Posts: 23 Location: chennai
|
|
|
|
| Are the Tables declared are native or Remote. If the tables are remote, then -510 occurs during Bind. |
|
| Back to top |
|
 |
lalitsharma_77
New User
Joined: 29 Nov 2007 Posts: 10 Location: Pune
|
|
|
|
Hi,
Cursor Update cannot be used if your SELECT statement consist of any one of the follwoing:
ORDER BY
GROUP BY
DISTINCT
JOIN
UNION
AGGREGATE FUNCTIONS
Please correct me if I am wrong. |
|
| Back to top |
|
 |
|
|