![](https://img-blog.csdnimg.cn/20201014180756919.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
数据库
lixiaofan1949
这个作者很懒,什么都没留下…
展开
-
mysql case when 的用法
20191216记录:有一想业务是统计文章通过数,未通过数和总文章数,本来是想写三条Sql语句的,但是想起来 mysql 有 case when ,像尝试一下 SELECT count(case when verify = 1 then 1 end) as 'pass',count(case when verify = 2 then 1 end ) as 'back',count(*) as `...原创 2019-12-16 14:07:53 · 96 阅读 · 0 评论 -
当数据库报这种错时: is marked as crashed and last (automatic?) repair failed
今天,数据库突然报出这样的错 [error] => Table './*****' is marked as crashed and last (automatic?) repair failed ) [3] => Array ( [errno] => 144 ) )原因百度了一下,大致有一下方面: 1.myisam的表数据太多,在某个时刻, 存放数据的这个MyISAM表数据急速长大. 比如一些l原创 2016-03-22 13:59:21 · 1328 阅读 · 0 评论