日期:2014-05-18 浏览次数:21114 次
StringBuilder strSql = new StringBuilder(); strSql.Append("DBO.person_INSERT "); strSql.Append(@"@id ,@name"); SqlParameter[] parameters = { new SqlParameter("@id", SqlDbType.VarChar), new SqlParameter("@TER_LAT", SqlDbType.VarChar)}; parameters[0].Value = "1"; parameters[1].Value = "name_1"; int ret = DBHelper.ExecuteNonQuery(strSql.ToString(), parameters);