sunny123456

  博客园 :: 首页 :: 博问 :: 闪存 :: 新随笔 :: 联系 :: 订阅 订阅 :: 管理 ::
上一页 1 ··· 154 155 156 157 158 159 160 161 162 ··· 172 下一页

2021年1月28日

摘要: https://zhuanlan.zhihu.com/p/62190281 今天,来总结一下感觉被遗忘了很久的JavaSE基础中的序列化和反序列化的概念。序列化:是把对象转换为字节序列,永久存到磁盘中。在网络中传输对象也要进行序列化。反序列化:是从磁盘中读取字节序列将它们反序列化成对象读出来。【序列 阅读全文
posted @ 2021-01-28 19:54 sunny123456 阅读(101) 评论(0) 推荐(0) 编辑

摘要: 第一种写法:update a set (c1,c2,c3) =(select c1,c2,c3 from b where......) where ......; 第二种写法比较笨:update test set a= '11 ',b = '22 ' where id=1 例如:update omc 阅读全文
posted @ 2021-01-28 19:47 sunny123456 阅读(7445) 评论(0) 推荐(0) 编辑

2021年1月25日

摘要: 可以利用公式 根据序号规则 例如从1开始一次递增1 在A1中输入1 然后选择A2到A50000,输入公式=A1+1,Ctrl+Enter结束即可 阅读全文
posted @ 2021-01-25 22:04 sunny123456 阅读(838) 评论(0) 推荐(0) 编辑

摘要: https://www.cnblogs.com/hedianzhan/p/9130296.html C#遍历List并删除某个或者几个元素的方法,你的第一反应使用什么方法实现呢?foreach? for? 如果是foreach,那么恭喜你,你答错了。如果你想到的是用for,那么你只是离成功进了一步。 阅读全文
posted @ 2021-01-25 22:01 sunny123456 阅读(1047) 评论(0) 推荐(0) 编辑

摘要: https://blog.csdn.net/u011728105/article/details/46594963 循环list中的所有元素然后删除重复 public static List removeDuplicate(List list) { for ( int i = 0 ; i < lis 阅读全文
posted @ 2021-01-25 21:57 sunny123456 阅读(394) 评论(0) 推荐(0) 编辑

摘要: https://www.cnblogs.com/sunxi/p/4767577.html 第二种中增加变量。 string name,保存 遍历的到的 i的 name值。倒叙遍历,如果 与之相等。那么就移除 i+1的数据 业务需求 最近做一个把源数据库的数据批次导出到目标数据库。源数据库是采集程序采 阅读全文
posted @ 2021-01-25 21:52 sunny123456 阅读(535) 评论(0) 推荐(0) 编辑

2021年1月22日

摘要: https://blog.csdn.net/wkj001/article/details/101920803?utm_medium=distribute.pc_relevant_bbs_down.none-task-blog-baidujs-1.nonecase&depth_1-utm_source 阅读全文
posted @ 2021-01-22 12:30 sunny123456 阅读(1496) 评论(0) 推荐(0) 编辑

2021年1月20日

摘要: https://www.jb51.net/article/43343.htm protected void Page_Load(object sender, EventArgs e) { DataTable dt = new DataTable(); dt.Columns.Add("Name"); 阅读全文
posted @ 2021-01-20 21:32 sunny123456 阅读(1621) 评论(0) 推荐(0) 编辑

摘要: https://www.cnblogs.com/esther-qing/p/5944724.html $.ajax({ type: "post", url: baseUrl+"sys/login", dataType: "json", contentType: "application/json;c 阅读全文
posted @ 2021-01-20 21:30 sunny123456 阅读(2733) 评论(0) 推荐(0) 编辑

摘要: 简单来说就是给字符串实现补位。 如:String.PadLeft(5,'0'); 表示检查字符串长度是否少于5位,若少于5位,则自动在其左侧以'0'补足。 string str="123"; str=str.PadLeft(5,'0'); //str="00123"; 同理PadRight是在右侧实 阅读全文
posted @ 2021-01-20 21:27 sunny123456 阅读(298) 评论(0) 推荐(0) 编辑

上一页 1 ··· 154 155 156 157 158 159 160 161 162 ··· 172 下一页