a "bookstore" assignment, want a keyword search, there are 3 tables:
book, cd and tape, will search all the attributes in tables.
have inserted in book and cd table 1 record each, with the word desired, tape table is empty
use
select book., cd. from book, cd where book.title like '%$var%' or book.author like '%$var%' or cd.album_name like '%$var%' or cd.performer like '%$var%';
get 1 record (should be 1+1=2 records)
if use
select book., cd., tape.* from book, cd, tape where book.title like '%$var%' or book.author like '%$var%' or cd.album_name like '%$var%' or cd.performer like '%$var%' or tape.title like '%$var%' ;
get 0 record
what's wrong?