Home > Backend Development > PHP Tutorial > mysql如何得到这么一条记录

mysql如何得到这么一条记录

WBOY
Release: 2016-06-13 13:20:20
Original
787 people have browsed it

mysql怎么得到这么一条记录?
mysql怎么得到这么一条记录?


------解决方案--------------------
select a.id,a.attributes,b.attribute_1,b.attribute_2 from a,b
where a.attributes like'%'+b.attribute_1+'%' and a.attributes like '%'+b.attribute_2+'%'

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template