DZone Snippets is a public source code repository. Easily build up your personal collection of code snippets, categorize them with tags / keywords, and share them with the world

Snippets has posted 5883 posts at DZone. View Full User Profile

Move Position Of MySQL Field

  • submit to reddit
        // Move field position and retain its content

ALTER TABLE your_table_name MODIFY your_field_name your_field_type [NULL|NOT NULL] AFTER other_field_name;