sql语句的简单优化

常见的sql优化技巧sql ①经过变量的方式来设置参数数据库 好:缓存 1性能 stringsql = "select * from people p where p.id = ? ";优化 坏:spa 1.net stringsql = "select * from people p where p.id = "+id;htm 数据库的SQL文解析和执行计划会保存在缓存中,可是SQL文只要有变化
相关文章
相关标签/搜索