Home >Backend Development >PHP Tutorial >怎样查询某个字段下所有的值?

怎样查询某个字段下所有的值?

WBOY
WBOYOriginal
2016-06-23 09:09:371150browse

想查询class表里面name字段下所有的值的sql语句怎么写呢?我知道如果查询某一个值可以用where  但是查询所有的怎么查呢?


回复讨论(解决方案)

不用where咯

select name from class;

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