SqlCommand cm = new SqlCommand(sql2,myconn);cm.ExecuteNonQuery();去变量类型就可
==>
cm = new SqlCommand(sql2,myconn);cm.ExecuteNonQuery();