从mysql中查最后一条记录

  sre

252f1302fbb9155b.gif
MySql :

SELECT * FROM 表名 ORDER BY 表_ID DESC LIMIT 1 

SQLServer/Oracle :

SELECT TOP 1 * FROM 表名 ORDER BY 表_ID DESC

LEAVE A COMMENT

Captcha Code