3 ms·
You use functions and stored procedures to provide a controlled API over the table. All actions will go through those and that will have your logic to enforce
by segmondy 7y ago
You use functions and stored procedures to provide a controlled API over the table. All actions will go through those and that will have your logic to enforce the constraints.
- mistrial9 7y agoright - except you can do this outside the database also, in code. But there is something about the rigor/pain-level of writing the in-DB functions that tends to make them change less. It is equally possible with external code, but the mental modal has to create expectations for your environment.