摘要:
2022年12月13日16:15:05 最近做一个项目需要中文名排序,因为数据库设计的时候,就是使用 utf8mb4_unicode_ci,担心有些特殊需求中文排序,但是还是无法正常排序 SELECT * FROM `file` WHERE `name` LIKE '%医疗中心护理制度汇编%' OR 阅读全文
摘要:
2022年8月2日08:21:38 /* * 内存分页工具 */ class PageTool { public static function pageByIterator(Iterator $data, bool $preserve_keys = true, int $page = 1, int 阅读全文
摘要:
2022年7月26日14:50:20 通常我们在mvc框架处理的时候,在控制器里面基本都这么写 class TestController extends BaseController { use ResponseTrait; public function index(Request $reques 阅读全文
摘要:
2022年7月25日10:59:44 开发环境 php8 laravel8 mysql8 在做一个动态文件管理的时候,发现如果我每次需要清空某个表的时候,在事务里面truncate table会触发 There is no active transaction的异常 DB::table('users 阅读全文