mysql:
select * from table order by id DESC limit 1
oracle:
select * from emp where id in (select max(id) from emp);
实例:
mysql> use weifeng;
Database changed mysql> select * from tb_post order by id desc limit \G; *************************** . row ***************************
id:
bloggerId:
likeNum:
postTime: -- ::
spiderFetchTime: NULL
postRank: NULL
showId: NULL
platformId:
postPlatformId: 1_b1d88acb5e5a21ed70785c41f3d5fe25
sourcePostId: NULL
mediaUrl: https://weifeng-hangzhou.aliyuncs.com/data_infra/ins/5d846f9ff66cf46ebbe115f91892bb08.jpg
width:
height:
fileSize:
averageHue: 0x4f4838
mediaType:
textContent: Senior Camp