上一页 1 ··· 4 5 6 7 8 9 10 11 12 ··· 41 下一页
摘要: 在实际开发中,我们经常会遇到数据字段类型为text,用来存储json类型的数据,但是当我们需要某一个json中的字段值的时候,就会感觉到头疼,当然我们可以使用多种方法,比如循环查询每次查询只查一个然后在json转译为数组,在获取值或者查出一个数据集合在通过foreach循环处理,不管哪种方式都绕不开 阅读全文
posted @ 2022-09-09 09:25 study_php_java_C++ 阅读(550) 评论(0) 推荐(0) 编辑
摘要: 代码: /** * 校验json字符串 * @param string $stringData * @return bool */ function isJsonString($stringData) { if (empty($stringData)) return false; try { //校 阅读全文
posted @ 2022-09-07 15:40 study_php_java_C++ 阅读(407) 评论(0) 推荐(0) 编辑
摘要: 最原始的写法: select A.* from tbl1 A where A.key not in (select key from tbl2) 如果tbl2表中数据量很大,比如数据上百万条,每次都这样匹配效率会非常低。 解决问题: SELECT tb1.* FROM tb1 LEFT JOIN t 阅读全文
posted @ 2022-09-02 09:53 study_php_java_C++ 阅读(1132) 评论(0) 推荐(0) 编辑
摘要: 如何在 Linux 中同时使用 head 和 tail 命令由于tail和head命令打印文件的不同部分,我们可以将这两者结合起来打印一些文件内容的高级过滤。例如,如果要从任何文件的中间读取内容,则必须同时使用这两个命令。假设我们想要从文件的第 5 行到第 10 行/etc/passwd。 首先, 阅读全文
posted @ 2022-08-30 18:34 study_php_java_C++ 阅读(76) 评论(0) 推荐(0) 编辑
摘要: BaseContentType = { ".load": "text/html", ".123": "application/vnd.lotus-1-2-3", ".3ds": "image/x-3ds", ".3g2": "video/3gpp", ".3ga": "video/3gpp", ". 阅读全文
posted @ 2022-08-19 09:31 study_php_java_C++ 阅读(51) 评论(0) 推荐(0) 编辑
摘要: ob_end_clean(); ob_start(); //打开文件 $handler = fopen($file_dir, 'r+b'); $file_size = filesize($file_dir); //声明头信息 Header("Content-type: application/oct 阅读全文
posted @ 2022-08-18 20:11 study_php_java_C++ 阅读(32) 评论(0) 推荐(0) 编辑
摘要: 数据库中字段值为null,表示值未知,因为不能使用 =, !=, >、<等符号进行比较,只能使用 value is null 或者value is not null 或者使用 ifnull(field_name,'') <> '李二' 阅读全文
posted @ 2022-08-02 16:58 study_php_java_C++ 阅读(187) 评论(0) 推荐(0) 编辑
摘要: # 301跳转要带着 permanent; 302 不带permanent rewrite ^.*$ https://www.hahaha.com/$1 permanent; 阅读全文
posted @ 2022-07-27 11:19 study_php_java_C++ 阅读(226) 评论(0) 推荐(0) 编辑
摘要: 引自: https://blog.csdn.net/iiopsd/article/details/119572410 问题背景: 每个地点每天新增一条数据,要根据地点分组查询出每个设备最新的数据(按创建时间倒序)。 数据库结构: CREATE TABLE `ecord` ( `Id` varchar 阅读全文
posted @ 2022-07-26 14:47 study_php_java_C++ 阅读(352) 评论(1) 推荐(0) 编辑
摘要: 之前由于 bower install 慢 去搜索方法,执行了语句: git config --global url."https://".insteadOf git:// 导致 git pull 无法执行,需要删除配置 可以在 cd ~ vim .gitconfig # 进行删除配置 阅读全文
posted @ 2022-07-20 09:51 study_php_java_C++ 阅读(1875) 评论(0) 推荐(0) 编辑
上一页 1 ··· 4 5 6 7 8 9 10 11 12 ··· 41 下一页