[求助]access数据库插入操作有误
以下是我的代码,帮我看看哪儿有问题,系统提示insert into 语法错误!!string strconn="Provider=Microsoft.Jet.OleDb.4.0;Data Source="+Server.MapPath("data/data.mdb");
OleDbConnection objconn=new OleDbConnection(strconn);
string strsql="insert into user(username,password,firstflag) values(?,?,?)";
//OleDbConnection objconn=new OleDbConnection();
//objconn=conn();
objconn.Open();
OleDbCommand objcom=new OleDbCommand();
objcom.Connection=objconn;
objcom.CommandText=strsql;
objcom.Parameters.Add("@username",OleDbType.VarChar,50);
objcom.Parameters["@username"].Value="2";
objcom.Parameters.Add("@password",OleDbType.VarChar,50);
objcom.Parameters["@password"].Value="3";
objcom.Parameters.Add("@firstflag",OleDbType.VarChar,1);
objcom.Parameters["@firstflag"].Value="1";
objcom.ExecuteNonQuery();