mysql:
select * from table order by id DESC limit 1
oracle:
select * from emp where id in (select max(id) from emp);
博客给出了在MySQL和Oracle数据库中获取最大ID记录的查询语句。在MySQL里使用`select * from table order by id DESC limit 1`;在Oracle中则是`select * from emp where id in (select max(id) from emp)`。
mysql:
select * from table order by id DESC limit 1
oracle:
select * from emp where id in (select max(id) from emp);

被折叠的 条评论
为什么被折叠?