![](https://img-blog.csdnimg.cn/20201014180756916.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
mysql
文章平均质量分 73
a9039
这个作者很懒,什么都没留下…
展开
-
mysql 中存储过程
MySQL5 中添加了存储过程的支持。 大多数SQL语句都是针对一个或多个表的单条语句。并非所有的操作都怎么简单。经常会有一个完整的操作需要多条才能完成 存储过程简单来说,就是为以后的使用而保存的一条或多条MySQL语句的集合。可将其视为批文件。虽然他们的作用不仅限于批处理。 为什么要使用存储过程:优点 1 通过吧处理封装在容易使用的转载 2015-05-08 17:22:49 · 308 阅读 · 0 评论 -
explain 分析sql 语句
1.用法explain select * from explain where a = 'a'mysql> explain select * from event; +—-+————-+——-+——+—————+——+———+——+——+——-+ | id | select_type | table | type | possible_keys | k原创 2015-05-07 15:43:34 · 301 阅读 · 0 评论 -
mysql 中 order by 优化
1.order by 在mysql 查询中会影响查询的效率select a.breed_name,a.id,is_vip,a.type_id from ml_seedling a join ml_user b on a.supplier_id = b.idjoin ml_nursery c on a.n_id=c.id and a.s_status = 1 AND a.i原创 2015-05-07 17:03:58 · 390 阅读 · 0 评论 -
mysql 索引
1. 前期准备,创建数据表CREATE TABLE `myuser` ( `id` int(11) NOT NULL AUTO_INCREMENT, `name` varchar(11) DEFAULT NULL, `remark` varchar(100) DEFAULT NULL, PRIMARY KEY (`id`), KEY `myindex` (`nam原创 2015-05-06 13:41:40 · 221 阅读 · 0 评论