Originally posted by chrisrlong
But the other way around, of course.
- Chris
Chris :
I didnt get what you wanted to tell, but lemme explain what I thought
SQL%ROWCOUNT is not at all needed...(yes if using cursors, but not needed in bulk loads)
jus see below eg
Code:
Insert into X select %Attribute_List% From Y
Where Not Exists (Select 1 From X Where PK_Of_X=Cols_Of_Y ( Or Sub Query ) )
;
Update X Set (COLx1,COLx2,...) = (Select %Attribute_List% From Y Where Cols_Of_Y ( Or Sub Query )=PK_Of_X)
Where Exists
(Select 1 from Y Where Cols_Of_Y ( Or Sub Query )=PK_Of_X)
;
Abhay.
funky...
"I Dont Want To Follow A Path, I would Rather Go Where There Is No Path And Leave A Trail."
"Ego is the worst thing many have, try to overcome it & you will be the best, if not good, person on this earth"