比如:string sqlInsert = "insert into friendSiteInfo (SiteName,LinkUrl)";
sqlInsert += "values(@SiteName,@LinkUrl)";
SqlParameter[] parameters = new SqlParameter[5];
parameters[0] = new SqlParameter("@SiteName", txtSiteName.Text);
parameters[1] = new SqlParameter("@LinkUrl", txtLinkurl.Text);
之后用command对象的ExecuteNonQuery方法无法执行了,求高手解答下啊 |