优化MYSQL数据库的方法。
1 回答

杨__羊羊
TA贡献1943条经验 获得超7个赞
(1).选取最适用的字段属性,应该尽量把字段设置为NOT NULL,这样在将来执行查询的时候,数据库不用去比较NULL值。
(2).使用连接(JOIN)来代替子查询(Sub-Queries)
(3).尽量少使用 LIKE 关键字和通配符
添加回答
举报
0/150
提交
取消