摘要:
第一方面:30种mysql优化sql语句查询的方法 避免全表扫描: 1.where 及 order by 上建立索引。2.避免在 where 子句中使用!=或<>操作符3. select id from t where num is null 改成: num上设置默认值0==> select id 阅读全文
摘要:
查看所有存储过程: 查看详细存储过程 ptest: 存储过程插入数据: mysql查询优化: 那么如果我们也要查询所有列,有两种方法,一种是id>=的形式,另一种就是利用join,看下实际情况: SELECT * FROM product WHERE ID > =(select id from pr 阅读全文