database atomicity consistency

后端 未结 3 411
执念已碎
执念已碎 2021-01-01 16:23

What is difference between Atomicity and consistency ? it looks to me as both are saying same thing in different word.

Atomicity

All tasks of a transaction are

3条回答
  •  情书的邮戳
    2021-01-01 16:57

    simple explain For consistency : if a field-type in database is Integer, it should accept only Integer value's and not some kind of other.If you want to store other types in this field, consistency are violated. At this condition transaction will rollback.

提交回复
热议问题