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.
如何在不使用嵌套查询或子查询的情况下实现这一点。
select * from table_name where id=(select avg(id) from table_name);
需要一些建议。
select * from table_name order by id desc limit 1
怎么样
SELECT * FROM table_name ORDER BY id DESC LIMIT 1