62,268
社区成员
发帖
与我相关
我的任务
分享 public static int UpdataSql(string sql)
{
SqlConnection SqlCon = new SqlConnection(ConfigurationManager.ConnectionStrings["ConStr"].ConnectionString);
SqlCon.Open();
SqlCommand SqlCom = new SqlCommand(sql, SqlCon);
return SqlCom.ExecuteNonQuery();
SqlCon.Close();
}int s = Sql.InsertSql(strsql);
if (s > 0).....