What's the point to enclose select statements in a transaction?

后端 未结 7 2101
渐次进展
渐次进展 2021-01-31 16:16

What\'s the point to enclose select statements in a transaction? I think select statements are just \"GET\" data from the database, they don\'t have chance to rollback something

7条回答
  •  野的像风
    2021-01-31 16:48

    If you're sure that all that is happening is a SELECT, then it doesn't need to be in a transaction. Are you 100% sure that now and forever more it's going to be just a SELECT?

提交回复
热议问题