环境MYSQL5.1
select * from adv ,taxi where adv.advId = taxi.id
结果是
[img]http://dl.iteye.com/upload/attachment/0077/8111/e9ecc46b-864c-3469-bce4-80017ef4bafe.png[/img]
有数据,并且taxiTitle的值是“宇飞宾馆”。
但再加一个条件的话,就查不出来数据了。
select * from adv ,taxi where adv.advId = taxi.id and taxi.taxiTitle like '%宇飞%'