MySqlParameter p1 = new MySqlParameter("id", MySqlDbType.Int32); p1.Value = sid; MySqlParameter p2 = new MySqlParameter("result", MySqlDbType.Int32); p2.Direction = ParameterDirection.Output; MySqlParameter[] ps = { p1, p2 }; DbHelperMySQL.ExecuteProc("up_delNode", ps); SQLServer同上