<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>modify Archives - scmGalaxy</title>
	<atom:link href="https://www.scmgalaxy.com/tutorials/tag/modify/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.scmgalaxy.com/tutorials/tag/modify/</link>
	<description>A Platform for Software Engineers</description>
	<lastBuildDate>Sat, 03 Apr 2021 12:42:14 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=7.1</generator>
	<item>
		<title>Alter Table in MySql</title>
		<link>https://www.scmgalaxy.com/tutorials/alter-table-in-mysql/</link>
					<comments>https://www.scmgalaxy.com/tutorials/alter-table-in-mysql/#respond</comments>
		
		<dc:creator><![CDATA[Joydeep M]]></dc:creator>
		<pubDate>Sat, 03 Apr 2021 12:42:14 +0000</pubDate>
				<category><![CDATA[Database]]></category>
		<category><![CDATA[alter table]]></category>
		<category><![CDATA[Change]]></category>
		<category><![CDATA[database]]></category>
		<category><![CDATA[modify]]></category>
		<category><![CDATA[query]]></category>
		<category><![CDATA[where]]></category>
		<guid isPermaLink="false">http://www.scmgalaxy.com/tutorials/?p=5794</guid>

					<description><![CDATA[<p>In this tutorial we will see the commands which we can use to make changes in our table (as per [&#8230;]</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/alter-table-in-mysql/">Alter Table in MySql</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<p class="wp-block-paragraph">In this tutorial we will see the commands which we can use to make changes in our table (as per <strong>April 2k21</strong>).</p>



<ul class="wp-block-list"><li>To add a column in an existing table:</li></ul>



<pre class="wp-block-code"><code>Syntax: <strong>ALTER TABLE </strong>table_name <strong>ADD </strong>column_name <strong>DATATYPE</strong>;</code></pre>



<ul class="wp-block-list"><li>To delete a column in an existing table:</li></ul>



<pre class="wp-block-code"><code>Syntax: <strong>ALTER TABLE </strong>table_name <strong>DROP </strong>column_name;</code></pre>



<ul class="wp-block-list"><li>To change the data type of a column in an existing table:</li></ul>



<pre class="wp-block-code"><code>Syntax: <strong>ALTER TABLE </strong>table_name <strong>MODIFY COLUMN </strong>column_name <strong>NEW DATA TYPE;</strong></code></pre>



<ul class="wp-block-list"><li>To rename a column in an existing table:</li></ul>



<pre class="wp-block-code"><code>Syntax: <strong>ALTER TABLE</strong> table_name <strong>CHANGE </strong>column_name <strong>NEW_COLUMN_NAME</strong>;</code></pre>



<ul class="wp-block-list"><li>To update the column as NOT NULL Constraint:</li></ul>



<pre class="wp-block-code"><code>Syntax: <strong>ALTER TABLE </strong>table_name <strong>MODIFY </strong>column_name <strong>DATATYPE NOT NULL;</strong></code></pre>



<ul class="wp-block-list"><li>To Sort the data in the Table:</li></ul>



<pre class="wp-block-code"><code>Syntax: <strong>SELECT </strong>"column_name" <strong>FROM </strong>"table-name" &#91;<strong>WHERE </strong>"condition"] <strong>ORDER BY </strong>"column_name" &#91;<strong>ASC/DESC</strong>];</code></pre>



<p class="wp-block-paragraph"></p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/alter-table-in-mysql/">Alter Table in MySql</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.scmgalaxy.com/tutorials/alter-table-in-mysql/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
