select * from student s,book b,borrowinfo bi where s.id=bi.student_id and b.id=bi.book_id and sex='女'
select * from brrowinfo where student_id in(select id from student where name='嘿嘿')