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