MySql
luozhangwen
这个作者很懒,什么都没留下…
展开
-
MySql循环插入的存储过程
<br />create procedure testInsert()<br />begin<br /> declare i int;<br />set i=1;<br />while i<10000000 do<br />insert into test(name) values(i);<br />set i=i+1;<br />end while;<br />end;原创 2011-01-05 09:06:00 · 854 阅读 · 0 评论 -
Mysql查询条件不区分问题解决方案
Mysql查询数据时查询条件输入不管大小写,都能查到同样的数据。 比如: 输入 aaa 或者aaA ,AAA都能查询同样的结果,说明查询条件是大小写不敏感的。 解决方法一: 创建表时增加BINARY标志CREATE TABLE T( A VARCHAR(原创 2011-10-18 10:44:48 · 635 阅读 · 0 评论 -
Mysql使用非常缓慢解决方法
解决办法: 在Mysql安装路径下的my.ini下面增加下面标识,并重启Mysql服务.[mysqld] skip-name-resolve 解释:When a new thread connects to mysqld, mysqld will spawn a new thread to handle the request. This thread will f原创 2011-11-03 10:08:38 · 751 阅读 · 0 评论