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

mysql如何得到这么一条记录

WBOY
WBOYOriginal
2016-06-13 10:38:04668browse

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+'%'

Statement:
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