时间:2021-07-01 10:21:17 帮助过:23人阅读
将查询到的sql语句返回到DataTable
private DataTable SqlQueryDataTable(string sql)//将sql语句的查询记录返回到DataTable { DataTable table = new DataTable(); if (m_dbConnection.State != ConnectionState.Open) return table; SQLiteCommand cmd = new SQLiteCommand(sql, m_dbConnection); SQLiteDataAdapter dataAdapter = new SQLiteDataAdapter(); dataAdapter.SelectCommand = cmd; dataAdapter.Fill(table); return table; }
Sqlite 的简单应用
标签:com 简单 code sqlite create string 退款 nec str