t_machine Posted January 26, 2007 Share Posted January 26, 2007 hi, I was wondering if it is possible to auto increment negative numbers in a mysql database. I know you can set the field to auto_increment but it will add positive numbers such as 1..2..3..4..5.. but how do i make it negative -1..-2..-3..-4?Thanks Quote Link to comment Share on other sites More sharing options...
Jessica Posted January 26, 2007 Share Posted January 26, 2007 that would be decrementing. If you just want it to show up that way in your display, you could just print a - in front ;) Quote Link to comment Share on other sites More sharing options...
t_machine Posted January 26, 2007 Author Share Posted January 26, 2007 Thank you for the reply, yes you are correct it is decrementing. I would like it to be stored that way in the database however. It is needed for a plugin I am creating. The problem is that the user already has positive numbers which would conflict with the plugin unless its negative. Thanks. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.