MySQL - Select the last inserted row easiest way

后端 未结 9 1876
误落风尘
误落风尘 2020-11-30 09:56

I simply need to select the last entered row specified by condition, e.g:

SELECT ID from bugs WHERE user=Me

I need to return only the very

9条回答
  •  無奈伤痛
    2020-11-30 10:30

    SELECT ID from bugs WHERE user=Me ORDER BY CREATED_STAMP DESC; BY CREATED_STAMP DESC fetches those data at index first which last created.

    I hope it will resolve your problem

提交回复
热议问题