Chapter 6Programming the Database
A stored routine is a set of statements stored and executed in the database. From the perspective of a database administrator, routines can provide an additional level of security because we can give users access through an API of routines instead of allowing them to access or modify data in the tables directly. From the programmer's perspective, routines can improve an application’s performance in some cases because they process data while it’s still in the database. The logic may execute more efficiently, because of things like server hardware and programming language choices, and aggregate calculations (such as summation, averaging, etc.) reduce the amount of data sent across the network back to an application. ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access