表结构同:71
如下:
插入数据代码
using System;
using System.Data;
using System.Data.OleDb;
namespace ADONETWriteQuery
{
class Class1
{
static void Main(string[] args)
{
string strDSN = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=你的路径mcTest.MDB";
string strSQL = "INSERT INTO Developer(Name, Address ) VALUES('NewNameIInsert', 'NewAddressIInsert')" ;
// 实例化OleDbCommand对象
OleDbConnection myConn = new OleDbConnection(strDSN);
// 实例化OleDbCommand对象