select name from tbl_bracelets b, tbl_brooch br where b.name or br.name ='Diamond Necklce'
$res=mysql_query($qry);
上面的 Sql 查询中有一个我找不到的错误...请帮我解决这个问题。
谢谢
select name from tbl_bracelets b, tbl_brooch br where b.name or br.name ='Diamond Necklce'
$res=mysql_query($qry);
上面的 Sql 查询中有一个我找不到的错误...请帮我解决这个问题。
谢谢
也许你需要这个?
select name
from tbl_bracelets b, tbl_brooch br
where b.name = br.name
or br.name ='Diamond Necklce'
尝试这个..
select b.name from tbl_bracelets b, tbl_brooch br where b.name='Diamond Necklce' or br.name='Diamond Necklce'
或者
select name
from tbl_bracelets where name='Diamond Necklce'
union
select name
from tbl_brooch where name='Diamond Necklce'