摘要: public static void CreateWebLog(string logStr) { try { string dir = System.Web.HttpContext.Current.Server.MapPath("~/log"); //c端 Directory.GetCurrentD 阅读全文
posted @ 2022-07-22 17:08 不买南孚电池 阅读(681) 评论(0) 推荐(0)
摘要: static void Main(string[] args) { DataTable dt = new DataTable(); dt.Columns.Add("name", typeof(string)); dt.Columns.Add("type", typeof(string)); //给d 阅读全文
posted @ 2022-07-04 22:08 不买南孚电池 阅读(93) 评论(0) 推荐(0)
摘要: 今天下雨 阅读全文
posted @ 2022-01-07 08:39 不买南孚电池 阅读(20) 评论(0) 推荐(0)
摘要: 系统:Windows Server 2008 +MS SQL 2008 2R 场景:在将SQL 2005数据库迁移到SQL 2008上时对链接服务器的数据表做增删改是正常的,在触发器中对链接服务器的数据表做增删改就有问题了,上图 来自微软官方的决解方案: https://support.micros 阅读全文
posted @ 2021-09-05 11:48 不买南孚电池 阅读(1644) 评论(0) 推荐(0)
摘要: 用SQL语句,删除掉重复项只保留一条 在几千条记录里,存在着些相同的记录,如何能用SQL语句,删除掉重复的呢1、查找表中多余的重复记录,重复记录是根据单个字段(peopleId)来判断select * from peoplewhere peopleId in (select peopleId fro 阅读全文
posted @ 2021-07-27 08:20 不买南孚电池 阅读(33) 评论(0) 推荐(0)
摘要: OnClientClick="top.addExampleTabByHref('/layout/region.aspx');" 阅读全文
posted @ 2020-08-01 12:00 不买南孚电池 阅读(96) 评论(0) 推荐(0)
摘要: Serialize JSON Product product = new Product(); product.Name = "Apple"; product.Expiry = new DateTime(2008, 12, 28); product.Sizes = new string[] { "S 阅读全文
posted @ 2020-07-30 08:56 不买南孚电池 阅读(84) 评论(0) 推荐(0)
摘要: MSSQLSERVER数据库- SQL交叉表 /*假设有张学生成绩表(tb)如下:Name Subject Result张三 语文 74张三 数学 83张三 物理 93李四 语文 74李四 数学 84李四 物理 94*/ /* 想变成姓名 语文 数学 物理 李四 74 84 94张三 74 83 9 阅读全文
posted @ 2020-07-18 13:02 不买南孚电池 阅读(262) 评论(0) 推荐(0)
摘要: https://www.cnblogs.com/liuqungs/archive/2013/04/26/3045227.html 阅读全文
posted @ 2020-07-16 13:34 不买南孚电池 阅读(78) 评论(0) 推荐(0)
摘要: ((DataGridViewComboBoxColumn)this.dataGridView1.Columns["Column2"]).Items.Add("adfd"); textBox1.Text = dataGridView1.Rows[0].Cells[1].Value.ToString() 阅读全文
posted @ 2020-07-16 08:52 不买南孚电池 阅读(130) 评论(0) 推荐(0)