摘要:
using System; using System.Collections.Generic; using System.Data.SqlClient; using System.Linq; using System.Text; using System.Threading.Tasks; using 阅读全文
摘要:
1. 将从数据库拿到的DataSet数据集转为DataTable类型 DataTable dt = SqlHelper.GetData() 使用: RowFilter来实现筛选功能 赛选出ClassId为a56爆大奖在线娱乐指定 ClassId的数据 dt.DefaultView.RowFilter = "Class 阅读全文
摘要:
语法: public static DataTable ExecuteTable(string sql) { using (SqlConnection conn = new SqlConnection(connStr)) { conn.Open(); SqlCommand cmd = new Sql 阅读全文