dragonusthei Posted October 17, 2006 Share Posted October 17, 2006 How can i set the number to auto_increment from higher than 0?Say i want to start auto_increment from 200 insted of the default 0 how would i go about it? Quote Link to comment https://forums.phpfreaks.com/topic/24246-how-to-auto_increment-from-a-number/ Share on other sites More sharing options...
LazyJones Posted October 17, 2006 Share Posted October 17, 2006 From [url=http://dev.mysql.com/doc/refman/5.0/en/example-auto-increment.html]http://dev.mysql.com/doc/refman/5.0/en/example-auto-increment.html[/url] "To start with an AUTO_INCREMENT value other than 1, you can set that value with CREATE TABLE or ALTER TABLE, like this:mysql> ALTER TABLE tbl AUTO_INCREMENT = 100;" Quote Link to comment https://forums.phpfreaks.com/topic/24246-how-to-auto_increment-from-a-number/#findComment-110183 Share on other sites More sharing options...
fenway Posted October 17, 2006 Share Posted October 17, 2006 I won't even ask why it matters so much.[b][i]LazyJones is back!!! ;-)[/i][/b] Quote Link to comment https://forums.phpfreaks.com/topic/24246-how-to-auto_increment-from-a-number/#findComment-110295 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.