No server-side prepared statements using MySQL Connector/J

后端 未结 1 1729
逝去的感伤
逝去的感伤 2020-12-16 08:01

From what I understand, MySQL 5.1 supports server-side prepared statements. Therefore the following code should prepare the statement once, and execute it 10 times:

1条回答
  •  生来不讨喜
    2020-12-16 08:41

    The Connector/J driver handles prepared statements locally unless you turn on real server side statements using the connection parameter useServerPrepStmts=true.

    http://dev.mysql.com/doc/refman/5.0/en/connector-j-reference-configuration-properties.html

    0 讨论(0)
提交回复
热议问题