group by跟where的用法

WBOY
Release: 2016-06-13 12:57:51
Original
2031 people have browsed it

group by和where的用法
select * from peizhi where tag=$row[tag] group by brand

这样写是错的。实现的是把以tag为条件把相同里面brand信息给取出来,并且是通过group by的方式取出来brand
------解决方案--------------------
select * from peizhi where tag=$row['tag'] group by brand

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