Files
Hui-s-notebook/logseq-java/pages/预编译SQL.md
2024-02-02 00:12:49 +08:00

8 lines
254 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
- preparedStatement
- 缓存相同sql只是占位符不同
- 好处
- sql会被缓存下来
- 作用域是每个session其他session无效
- 提高安全性防止sql注入
- 可能被重复调用,效率较高
- 支付服务器端的预编译