摘要: SqlCommand cmd; SqlCommand[] cmds, cmds1; cmds=new SqlCommand[10]; cmds1=new SqlCommand[10]; for (int i = 0; i < 10; i++) { cmd = new SqlCommand("select * from dbo.table" + i.ToString()); cmds[i] = cmd; ... 阅读全文
posted @ 2014-03-26 09:56 dennys 阅读(164) 评论(0) 推荐(0) 编辑
摘要: class Program { static void Main(string[] args) { Hashtable hs=new Hashtable(); List collection=new List(120); Game[] fs= { new Game(1,"100","alisdun"), new Game(2,"200","blisdun"), ... 阅读全文
posted @ 2014-03-26 09:23 dennys 阅读(213) 评论(0) 推荐(0) 编辑
摘要: string connString = ConfigurationManager.AppSettings["SqlConn"].ToString(); var conn=new SqlConnection(connString); //var cmd = new SqlCommand("SELECT alliance,ballid FROM talliance with(nolock) WHERE type=8 AND alliance like '%'+@alliance;"); ... 阅读全文
posted @ 2014-03-26 09:18 dennys 阅读(1219) 评论(0) 推荐(0) 编辑