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? 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;" 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] 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
Archived
This topic is now archived and is closed to further replies.