SqlServer和Oracle中一些经常使用的sql语句9 SQL优化

--SQL查询优化 尽可能避免使用or,not,distinct运算符,简化链接条件 /*Or运算符*/ use db_business go select * from 仓库 where 城市='北京' or 城市='青岛' --包含or运算符 sql将不使用索引,影响速度 /*In运算符*/ use db_business go select * from 仓库 where 城市 in(
相关文章
相关标签/搜索