摘要: 1、尽量少用负向条件查询 例如:!=、not in、not exists 都是不能使用索引的, //表单Order 一个订单状态值 0为未付款 1为付款 2为待付款 select * from Order where status != 0 //当Order表中的数据量特别大的时候,这个查询的效率会 阅读全文
posted @ 2023-01-11 14:52 海燕心海 阅读(42) 评论(0) 推荐(0)