Home >Database >Mysql Tutorial >查询一个表中的两个字段值相同的数据

查询一个表中的两个字段值相同的数据

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOriginal
2016-06-07 14:57:493074browse

查询一个表中的两个字段值相同的数据 无 #查询一个表中的两个字段值相同的数据select p1.cityname from forecast p1,forecast p2 where p1.cityname=p2.cityname and p1.cityname=p2.cityname and p1.id!=p2.id;

查询一个表中的两个字段值相同的数据
#查询一个表中的两个字段值相同的数据
select p1.cityname from forecast p1,forecast p2 where p1.cityname=p2.cityname and p1.cityname=p2.cityname and p1.id!=p2.id;
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