CREATE TABLE test ( id bigint(20) NOT NULL PRIMARY KEY AUTO_INCREMENT COMMENT '主键 ID', val varchar(128) NOT NULL COMMENT '数据', update_time timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间(修改时自动更新)' )
SQL: select * from test where update_time>@上一次最后修改时间 order by update_time limit 5000 offset 0;