Can I create support multiple database transactions on a single connection?

前端 未结 2 365
庸人自扰
庸人自扰 2021-01-07 06:51

I have created a HyperSQL Database. I was just wondering whether I could run multiple transactions on a single connection. I didn\'t want to spawn a new connection for each

2条回答
  •  北荒
    北荒 (楼主)
    2021-01-07 07:20

    Absolutely no. every "transaction" must have begin, complete or rollback. Of course you can separate a single transaction to some parts on a single line of original transaction. no more no less.

提交回复
热议问题