上一页 1 2 3 4 5 6 7 8 9 ··· 25 下一页
摘要: netsh advfirewall firewall add rule name = SQLPort dir = in protocol = tcp action = allow localport = 1433 remoteip = localsubnet profile = DOMAIN 经实验 阅读全文
posted @ 2024-09-05 11:55 techNote 阅读(87) 评论(0) 推荐(0)
摘要: 在SQL Server中,HAVING子句用于限制GROUP BY子句返回的结果集。它通常与聚合函数一起使用,用于筛选聚合后的数据。 HAVING子句的语法如下: SELECT column_name(s) FROM table_name WHERE condition GROUP BY colum 阅读全文
posted @ 2024-09-03 20:19 techNote 阅读(39) 评论(0) 推荐(0)
摘要: 创建数据库 Create DataBase students on ( Name='students_data', --数据文件的逻辑名 FileName='D:\students_data.mdf', --数据文件的实际名 Size=10Mb, --数据文件初始大小 FileGrowth=15% 阅读全文
posted @ 2024-09-03 20:09 techNote 阅读(28) 评论(0) 推荐(0)
摘要: 数据库 C#程序int int32text stringbigint int64binary System.Byte[]bit Booleanchar stringdatetime System.DateTimedecimal System.Decimalfloat System.Doubleima 阅读全文
posted @ 2024-09-03 14:17 techNote 阅读(25) 评论(0) 推荐(0)
摘要: ////取消转义 //string str = @"a/b/c123"; //bool b=str.StartsWith("a"); //MessageBox.Show(b.ToString()); //str = str.TrimStart('a'); //str = str.TrimEnd('3 阅读全文
posted @ 2024-08-31 21:24 techNote 阅读(30) 评论(0) 推荐(0)
摘要: 查看某数据库下数据表的个数及数据表的名字 SELECT COUNT(*) FROM INFORMATION_SCHEMA.TABLES; SELECT * FROM INFORMATION_SCHEMA.TABLES;SELECT COLUMN_NAME FROM INFORMATION_SCHEM 阅读全文
posted @ 2024-08-31 21:18 techNote 阅读(11) 评论(0) 推荐(0)
摘要: 项目-引用-找到或用NuGet找到-确定 项目代码中通过using ...引用上面的命名空间 然后就可以使用该命名空间下的类及类下的字段/属性/方法等了 如system.configuration等 阅读全文
posted @ 2024-08-31 19:20 techNote 阅读(58) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2024-08-31 09:03 techNote 阅读(17) 评论(0) 推荐(0)
摘要: public static bool ExportToExcelByNPOI(DataGridView dgv, string fileName) { bool b = false; try { IWorkbook workbook = new XSSFWorkbook(); ISheet shee 阅读全文
posted @ 2024-08-30 21:15 techNote 阅读(128) 评论(0) 推荐(0)
摘要: private void Form1_Load(object sender, EventArgs e) { statusStrip1.Items.Insert(1, new ToolStripSeparator());//1是索引,数控件位置从0开始 statusStrip1.Items.Inser 阅读全文
posted @ 2024-08-30 16:48 techNote 阅读(84) 评论(0) 推荐(0)
上一页 1 2 3 4 5 6 7 8 9 ··· 25 下一页