数据库2025年06月28日
转自http://blog.163.com/zhangjie_0303/blog/static/9908270620146951355834/ 1.对查询进行优化,应尽量避免全表扫描,首先应考虑在 where 及 order by 涉及的列上建立索引。 2.应尽量避免在 where 子句中对字段进行 null 值判断,否则将导致引擎放弃使用索引而进行全表扫...
数据库2025年05月21日
http://www.cnblogs.com/zhw511006/archive/2009/07/22/1528405.html http://blog.csdn.net/songyanjun2011/article/details/7308414 相同点: 1.truncate和不带where子句的delete、以及drop都会删除表内的数据。 2.dr...