Jump to content

Archived

This topic is now archived and is closed to further replies.

dragonusthei

How to auto_increment from a number?

Recommended Posts

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?

Share this post


Link to post
Share on other sites
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;
"

Share this post


Link to post
Share on other sites
I won't even ask why it matters so much.

[b][i]LazyJones is back!!! ;-)[/i][/b]

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.