Ashmere Posted February 20, 2009 Share Posted February 20, 2009 hey guys, i was wondering if there was anyway to set a mysql feild to auto increase, not auto increment, say i wanted it to add 10 to the current value every 5 minutes. Hayden Quote Link to comment https://forums.phpfreaks.com/topic/146158-mysql-auto-increasing-field/ Share on other sites More sharing options...
rhodesa Posted February 20, 2009 Share Posted February 20, 2009 not that i'm aware of. you could set up some scheduled script to increment them, but i think in this case, the best idea would be to use a DATETIME field and calculate the value when you need it Quote Link to comment https://forums.phpfreaks.com/topic/146158-mysql-auto-increasing-field/#findComment-767342 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.