2019年5月7日
摘要: echo date("Y-m-d",strtotime("-1 month",strtotime("2019-7-31"))); //2017-07-01 //为什么输出不是6.31呢,因为6月没有31,-1 month变成6.31后其实是7.1号。 echo date("Y-m-d",strtotime("last day of -1 month",strtotime("2019-7-31"... 阅读全文
posted @ 2019-05-07 14:21 泪滴 阅读(1016) 评论(0) 推荐(0) 编辑
摘要: myisam: 只有表锁,分为表共享读锁,表排他写锁。不支持事务 表共享读锁:session1:lock table a read ; 此session1能对只能对a表读,其他都干不了,其他的session能对这个表读。直到unlock tables; 表排他锁:session1:lock table a write; 此session1能对a表进行update,insert,select,de... 阅读全文
posted @ 2019-05-07 11:32 泪滴 阅读(862) 评论(0) 推荐(0) 编辑