






















今天才学会在写SQL语句的时候可以不用那么多的+号
用sqlparameter很方便
string SelectSQL = "select * from customers where customerid=@customerid";
SqlCmd.Connection = SqlConn;
SqlCmd.CommandText = SelectSQL;
SqlCmd.Parameters.Add("@customerid", SqlDbType.NVarChar, 50).Value = "alfki".ToUpper();
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。