performance of parameterized queries for different db's

后端 未结 2 1505
离开以前
离开以前 2021-01-28 02:07

A lot of people know that it is important to use parameterized queries to prevent sql injection attacks.

Parameterized queries are also much faster in sqlite and oracle

2条回答
  •  青春惊慌失措
    2021-01-28 02:10

    I've nearly always seen an increase in speed - but only the first time generally. After the plans are loaded and cached I would have surmised that the various db engines will behave the same for either type.

提交回复
热议问题