Are there downsides to using prepared statements?

后端 未结 5 741
陌清茗
陌清茗 2020-12-17 17:06

I\'ve been reading a lot about prepared statements and in everything I\'ve read, no one talks about the downsides of using them. Therefore, I\'m wondering if there are any \

5条回答
  •  醉酒成梦
    2020-12-17 17:09

    If you use a statement only once, or if you automatically generate dynamic sql statements (and either properly escape everythin or know for certain your parameters have only safe characters) then you should not use prepared statements.

提交回复
热议问题