Carlosdl
29855 pts. | Feb 17 2009 1:41PM GMT
Remember to set serveroutput on if you run your procedure from sql*plus.
Inprise
540 pts. | Feb 18 2009 9:06AM GMT
Hello,
Yes i checked with sqlcount — its don’t hav rows to update,but the update column and INSERT column on second table are same,defeintly if record Insert happening,UPDATEshould also happen
It looks strange
Any table creation criteria stops from this update??
Carlosdl
29855 pts. | Feb 18 2009 8:56PM GMT
Inserts don’t include a condition. Anytime you execute an insert, the desired row will be inserted unless an error occurs, on the other hand updates will affect only rows satisfying the WHERE clause (if it is present). So, the fact that the insert is being done doesn’t mean the update will for sure affect some row, because it have a WHERE clause that needs to be satisfied.
The WHERE clause of the update statement is key here.
Sivu
105 pts. | Feb 20 2009 7:12AM GMT
Yes!! what carlos saying is perfect can you send check the Where Clause criteria. Are you finding any rows with this condition??
Inprise
540 pts. | Feb 20 2009 10:12AM GMT
yes it s the problem,where clause causing the problem.i am looking into my code.






