如何在postgresql、spring和mybatis中锁定表,以便一次只能读取一个实例,其他实例等待。当运行多个实例时,一次只允许从表中读取一个
最佳答案
见:
https://www.postgresql.org/docs/9.4/static/explicit-locking.html也许“咨询锁”也足够了。
关于spring - 如何使用Spring在PostgreSQL中锁定表,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/52988450/