PHP Classes / Generate database auto increment table alter query

Generate MySQL database auto increment alter query

Generate database auto increment table alter query PHP Class

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.

Similar PHP Classes

Search in PHP Classes

Filter by tags