search

Home  >  Q&A  >  body text

Under what circumstances does MySQL use transactions?

Could you please give me some guidance? Under what circumstances are MySQL transactions enabled?

TAOTAO2417 days ago1984

reply all(3)I'll reply

  • 邓

    2018-05-12 08:51:47

    The transaction usage scenario I understand is that the data needs to be jointly changed, such as payment, one needs to be subtracted and the other needs to be added. If it is subtracted but not added, there will be a problem. At this time, transactions can be used without completing the entire process. The previous operations are invalid

    reply
    1
  • TAO

    thank you

    TAO · 2018-05-12 12:02:46
  • oswell

    oswell2018-05-12 08:34:16

    When operating multiple tables (checks are not counted, referring to additions, deletions, and modifications), you can use transactions

    reply
    1
  • TAO

    Thank you, Daniel

    TAO · 2018-05-12 12:02:21
  • sky

    sky2018-05-11 17:18:01

    For example, payment

    reply
    1
  • TAO

    For example, what should I pay?

    TAO · 2018-05-12 12:01:49
  • Cancelreply