Php sql查询在使用limit时返回错误
为什么这个查询有效?我该怎么写呢Php sql查询在使用limit时返回错误,php,sql,mysql,Php,Sql,Mysql,为什么这个查询有效?我该怎么写呢 select * from tbl_content order by year desc where visible = '1' limit 0,30; WHERE子句位于ORDER BY之前 重写为: select * from tbl_content where visible = '1' order by year desc limit 0,30; WHERE子句位于ORDER BY之前 重写为: select * from tbl_content
select * from tbl_content order by year desc where visible = '1' limit 0,30;
WHERE子句位于ORDER BY之前 重写为:
select * from tbl_content where visible = '1' order by year desc limit 0,30;
WHERE子句位于ORDER BY之前 重写为:
select * from tbl_content where visible = '1' order by year desc limit 0,30;