1. Insert into A1
2. Update A1
The middle also have affairs, after an insert commit;
Stored procedures in the SQL analyzer run normally, and soon. But in PB call, if small amount of data is no problem, but when there are large amounts of data,
When performing the update, insert: no problem, but in execution stops here not bottom go to, the database lock table.
CodePudding user response:
It is best not to call a stored procedure to complete the task, you can use the trigger, generally stored procedure doesn't INSERT and UPDATE the statement, in view of the temporary table, otherwise the transfer process in the program to complete the task will be to some strange situationCodePudding user response: