CodePudding user response:
The advantages of stored procedures include:- improve the execution efficiency of application, the stored procedure is stored in the database after compiling and execution time can be cached, can improve the speed of execution.
- to reduce the data transmission between application and database, call a stored procedure, you just need to pass parameters, business code already exists in the data;
Stored procedures can implement code reuse, different applications can share the same storage process;
- stored procedures to enhance security, the stored procedure implements the encapsulation of the code, the application data access through stored procedures, without the need for operation between the data table,
CodePudding user response: