How to update Auto increment value in single column field using a single query Post published:March 26, 2015 Post category:Tech Info Post author:Bastin X Post comments:0 Comments Go to your database ->SQL and add the following query like your table field SET @ordering = 0; UPDATE table SET increment = (@ordering := @ordering + 1) WHERE field = ‘value’ ORDER BY order_field; Leave a Reply Cancel replyCommentEnter your name or username to comment Enter your email address to comment Enter your website URL (optional) Save my name, email, and website in this browser for the next time I comment. You Might Also Like Disable Update Notifications and Maintenance Nags in WordPress June 27, 2015 MySQL syntax coding guidelines July 2, 2024 Enhance Your Communication: Transforming Informal Words into Formal Words August 29, 2024