-4

我想选择表格中的所有内容,jogos除了intCategoria11 所在的行。我该怎么做?

$query_GameData = sprintf("SELECT * FROM `jogos` ORDER BY  RAND()");
4

2 回答 2

5
SELECT *
FROM `jogos`
WHERE intCategoria <> 11
ORDER BY RAND()
于 2013-07-22T20:10:48.993 回答
2

只需像这样使用 WHERE 子句:

$query_GameData = sprintf("SELECT * FROM `jogos` where intCategoria != 11  ORDER BY RAND() ");
于 2013-07-22T20:10:32.723 回答