SqlCommand MyCommand2 = new SqlCommand("SELECT * FROM arnclass where classid="+dr["classid"].ToString()+"",MyConnection);
where classid="+dr["classid"].ToString()+"",
怎么这样写不能用啊?
...全文
16913打赏收藏
不能这样写????怪!~
由第一个mycommand 打开了dr 然后在第二个mycommand 里调用这个DR SqlCommand MyCommand2 = new SqlCommand("SELECT * FROM arnclass where classid="+dr["classid"].ToString()+"",MyConnection); where classid="+dr["classid"].ToString()+"", 怎么这样写不能用啊?