Access 语句 参数顺序
string sqlstr="update tbTest set name=@name, gender=@gender, duty=@duty, age=@age where id=@id"
Oleparameter[] paras=new Oleparameter[5];
paras[0]=new Oleparameter("@name",OleDbType.VarCHar,50);
paras[0].Value=nameValue;
paras[1]=new Oleparameter("@gender",OleDbType.VarCHar,50);
paras[1].Value=nameValue;
paras[2]=new Oleparameter("@duty",OleDbType.VarCHar,50);
paras[2].Value=nameValue;
.......
Ole.ExcuteCommand(sqlstr,paras);
//在OleDb(Access中,) paras[]的顺序 必须严格遵从sqlstr的顺序
//在SqlServer中,尚未测试