Login   Register  
PHP Classes
elePHPant
Icontem

Generate database auto increment table alter query: Generate MySQL database auto increment alter query

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Info   View files View files (1)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Last Updated Ratings Unique User Downloads Download Rankings  
2008-04-11 (6 years ago) RSS 2.0 feedNot yet rated by the usersTotal: 212 All time: 7,202 This week: 1,382Up
Version License PHP version Categories  
autoincrement 1.00GNU General Public Lice...4.0Databases
Description Author  

This class can be used to generate MySQL database alter statements queries to add auto-increment fields.

It traverse all tables of a given MySQL database and generates SQL statements that alter the tables to add auto-increment fields after restoring a database dump that did not preserve the auto-increment fields.

The generates SQL statements may be returned as a single string or be served for download as the current script output.

Picture of Muhammed Imran Hussain
Name: Muhammed Imran Hussain <contact>
Classes: 1 package by
Country: Bangladesh Bangladesh
Age: ???
All time rank: 360644 in Bangladesh Bangladesh
Week rank: 1882 Up33 in Bangladesh Bangladesh Up

  Files folder image Files  
File Role Description
Plain text file ClsAlterDb.php Class Alter Table Class

 Version Control Unique User Downloads Download Rankings  
 0%Total:212All time:7,202
 This week:0This week:1,382Up