How to add a new column to a table – MySQL

To add a new column called age to the clients table, use the following SQL statement:

The statement will add the age column to the end of the table.

To insert the new column after a specific column, such as column lastname, use this statement:

To insert the new column to the in front of other columns, use this statement:

Share on FacebookShare on Google+Tweet about this on TwitterShare on LinkedInShare on RedditShare on StumbleUponEmail this to someoneShare on TumblrDigg this

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code class="" title="" data-url=""> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre class="" title="" data-url=""> <span class="" title="" data-url="">