如何在查询中,
SELECT * WHERE type =
Run Code Online (Sandbox Code Playgroud)
除了"新闻"之外的一切?或者我应该稍后检查while()?
SELECT * FROM table_name WHERE type != 'news';
Run Code Online (Sandbox Code Playgroud)
是一种方式,如果你有多个:
SELECT * FROM table_name WHERE type NOT IN('news', 'other');
Run Code Online (Sandbox Code Playgroud)