How to skip the first n rows in sql query

前端 未结 11 1003
清歌不尽
清歌不尽 2020-12-09 01:40

I want to fire a Query \"SELECT * FROM TABLE\" but select only from row N+1. Any idea on how to do this?

11条回答
  •  清歌不尽
    2020-12-09 02:13

    try below query it's work

    SELECT * FROM `my_table` WHERE id != (SELECT id From my_table LIMIT 1)
    

    Hope this will help

提交回复
热议问题