When should I use stored procedures?

前端 未结 19 2548
眼角桃花
眼角桃花 2020-12-04 10:53

When should I be using stored procedures instead of just writing the logic directly in my application? I\'d like to reap the benefits of stored procedures, but I\'d also lik

19条回答
  •  长情又很酷
    2020-12-04 11:33

    It also depends on your audience. Is ease of installation and portability across DBMSs important to you?

    If your program should be easy to install and easy to run on different database systems then you should stay away from stored procedures and also look out for non-portable SQL in your code.

提交回复
热议问题