Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想选择表格中的所有内容,jogos除了intCategoria11 所在的行。我该怎么做?
jogos
intCategoria
$query_GameData = sprintf("SELECT * FROM `jogos` ORDER BY RAND()");
SELECT * FROM `jogos` WHERE intCategoria <> 11 ORDER BY RAND()
只需像这样使用 WHERE 子句:
$query_GameData = sprintf("SELECT * FROM `jogos` where intCategoria != 11 ORDER BY RAND() ");