当前位置:网站首页>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;
边栏推荐
- 20. [stm32] realize the function of intelligent garbage can by using ultrasonic module and steering gear
- Analytic hierarchy process of mathematical modeling (including Matlab code)
- Information collection of penetration test
- Lesson 4 knowledge summary
- Appium automation test foundation - appium basic operation API (I)
- Creation and optimization of MySQL index
- Redis distributed lock principle and its implementation with PHP (2)
- 基于OpenHarmony的智能金属探测器
- Fundamentals of data communication - Principles of IP routing
- Data communication foundation ACL access control list
猜你喜欢
Data communication foundation smart_ Link_&_ Monitor_ Link
vlunhub- BoredHackerBlog Moriarty Corp
F. Min cost string problem solving Report
力扣今日题-729. 我的日程安排表 I
Data communication foundation - dynamic routing protocol rip
Lesson 4 knowledge summary
OSI seven layer model
swiper. JS to achieve barrage effect
Aike AI frontier promotion (7.5)
21.[STM32]I2C协议弄不懂,深挖时序图带你编写底层驱动
随机推荐
Data communication foundation - routing communication between VLANs
F. Min cost string problem solving Report
MySQL giant pit: update updates should be judged with caution by affecting the number of rows!!!
ionic cordova项目修改插件
JS knowledge points-01
wyt 。。
String modification problem solving Report
Codasip为RISC-V处理器系列增加Veridify安全启动功能
Common interview questions about swoole
Coding devsecops helps financial enterprises run out of digital acceleration
CSRF, XSS science popularization and defense
Modify PyUnit_ Time makes it support the time text of 'xx~xx months'
episodic和batch的定义
17.[STM32]仅用三根线带你驱动LCD1602液晶
【簡記】解决IDE golang 代碼飄紅報錯
F. Weights assignment for tree edges problem solving Report
2.3 learning content
Common MySQL interview questions (1) (written MySQL interview questions)
CODING DevSecOps 助力金融企业跑出数字加速度
Good article inventory