摘要: using System; using System.Collections.Generic; using System.Data.SqlClient; using System.Linq; using System.Text; using System.Threading.Tasks; using 阅读全文
posted @ 2024-06-14 19:28 龙卷风吹毁停车场 阅读(1) 评论(0) 推荐(0) 编辑
摘要: 1. 将从数据库拿到的DataSet数据集转为DataTable类型 DataTable dt = SqlHelper.GetData() 使用: RowFilter来实现筛选功能 赛选出ClassId为a56爆大奖在线娱乐指定 ClassId的数据 dt.DefaultView.RowFilter = "Class 阅读全文
posted @ 2024-06-14 12:35 龙卷风吹毁停车场 阅读(1) 评论(0) 推荐(0) 编辑
摘要: 语法: public static DataTable ExecuteTable(string sql) { using (SqlConnection conn = new SqlConnection(connStr)) { conn.Open(); SqlCommand cmd = new Sql 阅读全文
posted @ 2024-06-14 09:34 龙卷风吹毁停车场 阅读(2) 评论(0) 推荐(0) 编辑