如何将优化查询的结果输出到名为“customerDataGridView”的数据网格视图?
string strCon = Properties.Settings.Default.PID2dbConnectionString;
using (OleDbConnection conn = new OleDbConnection(strCon)) {
conn.Open();
string strSql = "SELECT * FROM customer WHERE City =Belfast";
OleDbDataAdapter adapter = new OleDbDataAdapter(new OleDbCommand(strSql, conn));
}
谢谢你的帮助!