string sqlstr = "INSERT INTO data (name) Values(’a’);SELECT @@Identity;";
System.Data.OleDb.OleDbCommand cmd = new System.Data.OleDb.OleDbCommand(sqlstr);
cmd.Connection = conn;
cmd.ExecuteNonQuery();
cmd.Connection.Close();
System.Data.OleDb.OleDbCommand cmd = new System.Data.OleDb.OleDbCommand(sqlstr);
cmd.Connection = conn;
cmd.ExecuteNonQuery();
cmd.Connection.Close();