开发者

LOCK TABLE as a prepared statement?

Does it make sense to prepare a LOCK TABLE statement? I'm not really concerned about efficiency here, because it would only execute once a transaction and at most a few times a minute. I'm more wondering if the concept is meaningful.

I'm usi开发者_开发知识库ng the PostgreSQL JDBC driver, if it matters.


Performance aside, preparing statements is useful when you have parameters in your query. Since your query has no parameters you don't need to prepare it.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜