There is a stored procedure that firstly returns the result of a sample of data , and secondly it updates the fields .
There are two kinds of internal procedure calls and both are not suitable:
1) A selective call (via “select”), which in principle allows me to get a sample, but in this case there is no “commit” for “update”.
2) Through “EXECUTE PROCEDURE”, in this case, it will be “commit” for “update”, but instead of sampling there will be only one line ..
- Is it possible to call the procedure in such a way that both “commit” for “update” and sampling?
- Or should the procedure be divided into “update” and “sample”?
- Or from another procedure, call another (for example, divide it into 2 procedures: “sampling” and “update” - thus, call “sampling” from delphi, and “update” from it)? But I wanted to have one procedure.