
<?xml version="1.0"?>
<?xml-stylesheet type="text/css" href="http://www.thelinuxwiki.com/skins/common/feed.css?303"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>http://www.thelinuxwiki.com/index.php?action=history&amp;feed=atom&amp;title=Howto_alter_existing_mysql_table</id>
		<title>Howto alter existing mysql table - Revision history</title>
		<link rel="self" type="application/atom+xml" href="http://www.thelinuxwiki.com/index.php?action=history&amp;feed=atom&amp;title=Howto_alter_existing_mysql_table"/>
		<link rel="alternate" type="text/html" href="http://www.thelinuxwiki.com/index.php?title=Howto_alter_existing_mysql_table&amp;action=history"/>
		<updated>2026-04-29T05:06:40Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.21.5</generator>

	<entry>
		<id>http://www.thelinuxwiki.com/index.php?title=Howto_alter_existing_mysql_table&amp;diff=179&amp;oldid=prev</id>
		<title>Nighthawk: Pushed from Themanclub.</title>
		<link rel="alternate" type="text/html" href="http://www.thelinuxwiki.com/index.php?title=Howto_alter_existing_mysql_table&amp;diff=179&amp;oldid=prev"/>
				<updated>2013-04-12T15:45:20Z</updated>
		
		<summary type="html">&lt;p&gt;Pushed from Themanclub.&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;'''commands run from mysql interactive prompt'''&lt;br /&gt;
&lt;br /&gt;
Add new varchar column to the end of the table&lt;br /&gt;
  &amp;gt;ALTER TABLE `tablename_here` ADD `new_column_name` VARCHAR( 255 ) NOT NULL ;&lt;br /&gt;
&lt;br /&gt;
Add new integer column after an existing column in table&lt;br /&gt;
  &amp;gt;ALTER TABLE `tablename_here` ADD `new_column_name` INT NOT NULL AFTER `existing_column` ;&lt;br /&gt;
&lt;br /&gt;
This changes the column called &amp;quot;name&amp;quot; on the table called &amp;quot;people&amp;quot; to now allow 35 characters.&lt;br /&gt;
  &amp;gt;alter table people modify name VARCHAR(35) ; &lt;br /&gt;
&lt;br /&gt;
This removes the column &amp;quot;flavor&amp;quot; from the table called &amp;quot;icecream&amp;quot;.&lt;br /&gt;
  &amp;gt;alter table icecream drop column flavor; &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 &lt;br /&gt;
[[category:mysql]]&lt;/div&gt;</summary>
		<author><name>Nighthawk</name></author>	</entry>

	</feed>