会员
T恤
新闻
博问
闪存
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
WebLinuxStudy
导航
博客园
首页
新随笔
联系
订阅
管理
公告
2025年3月20日
MYSQL按指定字段值顺序显示结果
摘要: SELECT * FROM users ORDER BY FIELD(status, 'active', 'pending', 'inactive');MYSQL 按指定字段值顺序显示结果
阅读全文
posted @ 2025-03-20 20:54 WebLinuxStudy
阅读(3)
评论(0)
推荐(0)
2025年2月20日
linux查询文件中关键字的个数
摘要: grep -c "成功" 20.log
阅读全文
posted @ 2025-02-20 20:31 WebLinuxStudy
阅读(6)
评论(0)
推荐(0)
linux查询文件行数
摘要: wc -l 20.log
阅读全文
posted @ 2025-02-20 20:30 WebLinuxStudy
阅读(1)
评论(0)
推荐(0)
2024年11月5日
一年期等额本息或等额本金换算成年化率
摘要: 年化率 = (还款金额 / 本金) / 78 * 144
阅读全文
posted @ 2024-11-05 16:19 WebLinuxStudy
阅读(57)
评论(0)
推荐(0)
2024年8月2日
laravel框架下集合操作
摘要: use Illuminate\Support\Facades\Redis; 1、集合添加Redis::sadd('redisKey', 'item1'); 2、判断集合中是否存在某个值Redis::sismember('redisKey', 'item1'); 3、集合个数Redis::scard(
阅读全文
posted @ 2024-08-02 17:33 WebLinuxStudy
阅读(20)
评论(0)
推荐(0)
2024年5月30日
php连接redis
摘要: <?php $host = ''; $port = ''; $password = ''; $database = 0; $value = ''; try { $redis = new redis(); $redis->connect($host, $port); if ($password !==
阅读全文
posted @ 2024-05-30 18:36 WebLinuxStudy
阅读(5)
评论(0)
推荐(0)
2024年5月17日
设置nginx允许跨域
摘要: 设置nginx允许跨域
阅读全文
posted @ 2024-05-17 18:09 WebLinuxStudy
阅读(117)
评论(0)
推荐(0)
2024年3月8日
SourceTree拉取代码冲突问题的解决
摘要: 解决办法参考网址: https://blog.csdn.net/qq_22701869/article/details/107539711 其中: <<<<<<< Updated upstream 到 之间的代码是你拉取的远程分支的代码; 到 >>>>>>> Stashed changes 之间的代
阅读全文
posted @ 2024-03-08 18:43 WebLinuxStudy
阅读(457)
评论(0)
推荐(0)
2023年11月13日
php获取精确到微秒级的时间戳
摘要: <?phpdate_default_timezone_set("Asia/Shanghai"); list($uSecond, $second) = explode(' ', microtime());echo sprintf('%d%d', $second, (int)($uSecond * 10
阅读全文
posted @ 2023-11-13 17:38 WebLinuxStudy
阅读(257)
评论(0)
推荐(0)
2023年9月21日
php通过curl获取数据
摘要: <?phpheader("Content-Type:text/html;charset=UTF-8");$url = 'https://www.baidu.com';print_r(curlContent($url));function curlContent($url, $method = 'ge
阅读全文
posted @ 2023-09-21 11:09 WebLinuxStudy
阅读(73)
评论(0)
推荐(0)
下一页
点击右上角即可分享