摘要:
StringBuilder类: 用来定义可变字符串 StringBuilder sb = new StringBuilder(""); //追加字符串 sb.Append("World"); sb.Append("!"); //W2orld sb.Insert(2, "2"); //原字符串:Wo2 阅读全文
摘要:
string sqlcon="Data Source=.;Initial Calalog=MySchool;User ID=sa;Pwd=."; Connection:打开数据库连接 程序与数据库沟通的桥梁 SqlConnection con=new SqlConnection(sqlcon); t 阅读全文