Make an existing MySQL column auto_increment
MySQL
January 23, 2009
Description
Modify an existing column to make it auto increment.
Snippet
ALTER TABLE [table name] MODIFY [column] int NOT NULL AUTO_INCREMENT
Post new comment
Your name:
E-mail:
The content of this field is kept private and will not be shown publicly.
Homepage:
Comment:
*
Web page addresses and e-mail addresses turn into links automatically.
Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
Lines and paragraphs break automatically.
More information about formatting options
fused
Drupal
PHP
MySQL
HTML
CSS
Javascript
Web Design
Tools
Random
Post new comment