![](https://img-blog.csdnimg.cn/20201014180756925.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
SQL
恐龍
坏人一个,恐龙一个
展开
-
数据库查询性能需注意几点经验
数据库查询性能需注意几点经验 详细出处参考:http://www.jb51.net/article/37361.htm 1.对查询进行优化,应尽量避免全表扫描,首先应考虑在 where 及 order by 涉及的列上建立索引。 2.应尽量避免在 where 子句中对字段进行 null 值判断,否则将导致引擎放弃使用索引而进行全表扫描,如: select id转载 2013-05-29 21:16:22 · 488 阅读 · 0 评论 -
Mysql 涉及事务的存储过程
BEGIN #Routine body goes here... DECLARE EXIT HANDLER FOR SQLEXCEPTION ROLLBACK; START TRANSACTION; savepoint sp; begin DECLARE IDLog INT; INSERT INTO ProcExecLog(ProcName) VALUES('Ppjid_WeeklyInsert原创 2014-03-27 09:43:20 · 717 阅读 · 0 评论 -
Mysql com.mysql.jdbc.PacketTooBigException 的解决方案
com.mysql.jdbc.PacketTooBigException: Packet for query is too large (3933378 > 1048576). You can change this value on the server by setting the max_allowed_packet' variable. at com.mysql.jdbc.MysqlIO原创 2015-08-31 14:51:17 · 6415 阅读 · 0 评论