SqlDataAdapter myCommand = new  SqlDataAdapter(" select * from aa where b='" + str+"'", myConnection);
试试