当前位置:网站首页>sql中查询最近一条记录
sql中查询最近一条记录
2022-07-05 15:26:00 【小蚂蚁hjk】
第一种方法:select * from a where id = (select max(id) from a );
第二种方法:select * from a order BY id desc limit 0,1;
边栏推荐
- Appium自动化测试基础 — APPium基础操作API(一)
- Appium automation test foundation - appium basic operation API (II)
- ionic cordova项目修改插件
- Misc Basic test method and knowledge points of CTF
- vlunhub- BoredHackerBlog Moriarty Corp
- The computer is busy, and the update is a little slow
- vulnhub-Root_ this_ box
- Information collection of penetration test
- Basic JSON operations of MySQL 5.7
- Anti shake and throttling
猜你喜欢

Common redis data types and application scenarios

Advanced level of static and extern

具有倍数关系的时钟切换
![P6183 [USACO10MAR] The Rock Game S](/img/f4/d8c8763c27385d759d117b515fbf0f.png)
P6183 [USACO10MAR] The Rock Game S

Common MySQL interview questions

Bugku's steganography

Misc Basic test method and knowledge points of CTF

Write a go program with vscode in one article

The OBD deployment mode of oceanbase Community Edition is installed locally
![21. [STM32] I don't understand the I2C protocol. Dig deep into the sequence diagram to help you write the underlying driver](/img/f4/2c935dd9933f5cd4324c29c41ab221.png)
21. [STM32] I don't understand the I2C protocol. Dig deep into the sequence diagram to help you write the underlying driver
随机推荐
Reasons and solutions for redis cache penetration and cache avalanche
First PR notes
The difference between SQL Server char nchar varchar and nvarchar
Codasip为RISC-V处理器系列增加Veridify安全启动功能
Hongmeng system -- Analysis from the perspective of business
MySQL table field adjustment
一文搞定vscode编写go程序
Temporary cramming before DFS examination
Maximum common subsequence
Detailed explanation of C language branch statements
Creation and optimization of MySQL index
Transfer the idea of "Zhongtai" to the code
Advanced level of static and extern
P6183 [USACO10MAR] The Rock Game S
Coding devsecops helps financial enterprises run out of digital acceleration
Noi / 1.3 01: a+b problem
SQL Server learning notes
SQL injection sqllabs (basic challenges) 11-20
MySQL overview
Object. defineProperty() - VS - new Proxy()