This keyword can be used in cases where you merely want to read the record multiple times without any need to update. You use it like this.
select repeatableRead salesTable where salesTable.SalesStatus == SalesStatus::Invoiced;
On the database level, repeatableRead maintains a shared lock on all the records selected by the select statement, meaning that the records maintain the original values and no updates/deletes are allowed.
No comments:
Post a Comment