0
select name from tbl_bracelets b, tbl_brooch br where b.name or br.name ='Diamond Necklce'

$res=mysql_query($qry);

上面的 Sql 查询中有一个我找不到的错误...请帮我解决这个问题。

谢谢

4

2 回答 2

0

也许你需要这个?

select name
from tbl_bracelets b, tbl_brooch br
where b.name = br.name
   or br.name ='Diamond Necklce'
于 2013-02-06T05:12:36.043 回答
0

尝试这个..

  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'
于 2013-02-06T05:12:43.507 回答