Fork me on GitHub
上一页 1 ··· 3 4 5 6 7 8 9 10 11 下一页
摘要: 阅读全文
posted @ 2022-03-07 11:16 残风飞雪 阅读(21) 评论(0) 推荐(0) 编辑
摘要: DataTable A = new DataTable(); A.Columns.Add("MenuName", typeof(string)); A.Columns.Add("nowvisitnum", typeof(int)); DataRow drA = null; drA = A.NewRo 阅读全文
posted @ 2022-02-14 14:39 残风飞雪 阅读(462) 评论(0) 推荐(0) 编辑
摘要: 在mysql中是没有top关键字的,在mysql中可以用limit来完成功能。 order by id limit 5,10 按照id的正序排序 从第5条开始取10条 阅读全文
posted @ 2022-02-14 14:34 残风飞雪 阅读(237) 评论(0) 推荐(0) 编辑
摘要: C#里内置的DateTime基本上都可以实现这些功能,巧用DateTime会使你处理这些事来变轻松多了今天DateTime.Now.Date.ToShortDateString();昨天,就是今天的日期减一DateTime.Now.AddDays(-1).ToShortDateString();明天 阅读全文
posted @ 2022-02-14 14:31 残风飞雪 阅读(2241) 评论(0) 推荐(0) 编辑
摘要: #region 获取 本周、本月、本季度、本年 半年的开始时间或结束时间 /// <summary> /// 获取开始时间 /// </summary> /// <param name="TimeType">Week、Month、Season、Year</param> /// <param name 阅读全文
posted @ 2022-01-19 14:53 残风飞雪 阅读(77) 评论(0) 推荐(0) 编辑
摘要: var status = 4; var state = status == 1 ? "a" : (status == 2 ? "b" : (status == 3 ? "c" : (status == 4 ? "d" : "结束"))); Console.WriteLine(state); Cons 阅读全文
posted @ 2022-01-14 18:44 残风飞雪 阅读(273) 评论(0) 推荐(0) 编辑
摘要: MySQL中获取天、周、月等数据 1.今天 select * from 表名 where to_days(时间字段名) = to_days(now()); 2.昨天 SELECT * FROM 表名 WHERE TO_DAYS( NOW( ) ) - TO_DAYS( 时间字段名) <= 1 3.近 阅读全文
posted @ 2022-01-12 19:10 残风飞雪 阅读(2569) 评论(0) 推荐(0) 编辑
摘要: 1、选中需要对齐的行2、CTRL+K3、CTRL+F 阅读全文
posted @ 2022-01-12 09:47 残风飞雪 阅读(1441) 评论(0) 推荐(0) 编辑
摘要: %"为取余号。 "/"号做什么运算与除数和被除数的类型有关 1. 整形运算是取整(不进行四舍五入只取整数部分) int a = 4; int b = 5; float c = a / b; Console.WriteLine(c); Console.ReadKey(); 结果为c=0(因为会先进行i 阅读全文
posted @ 2022-01-12 08:26 残风飞雪 阅读(8538) 评论(0) 推荐(0) 编辑
摘要: 环境准备 1、建议系统:CentOS 7.9(强烈建议安装标准版),下载地址:https://mirrors.tuna.tsinghua.edu.cn/centos/7.9.2009/isos/x86_64/CentOS-7-x86_64-DVD-2009.iso 2、服务器最低配置要求 版本 最低 阅读全文
posted @ 2021-12-27 14:20 残风飞雪 阅读(3862) 评论(0) 推荐(0) 编辑
上一页 1 ··· 3 4 5 6 7 8 9 10 11 下一页

博客地址 - 创建于 2022年4月12日

这是一位.Net软件研发工程师的个人站,内容主要是网站开发方面的技术文章,大部分来自学习或工作,部分来源于网络,希望对大家有所帮助。

致力于web网站开发工作,专注软件开发,关注互联网前沿技术与趋势。


Font Awesome Bootstrap中文网