select a.* b.* from 表1 a,表2 b where a.bookname='' and a.bookname=b.booknamesql语句大致如上,显示到画面上需要针对你的设计的语言来定。