﻿<?xml version='1.0' encoding='UTF-8'?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>Teradata Forums / Teradata  / Teradata Database  / what is the easiest way to change column name / Latest Posts</title><generator>InstantForum.NET v4.1.4</generator><description>Teradata Forums</description><link>http://www.teradata.com/teradataforum/</link><webMaster>info@teradata.com</webMaster><lastBuildDate>Wed, 03 Dec 2008 16:20:25 GMT</lastBuildDate><ttl>20</ttl><item><title>RE: what is the easiest way to change column name</title><link>http://www.teradata.com/teradataforum/Topic11779-9-1.aspx</link><description>Thank you. That works fine.</description><pubDate>Thu, 12 Jun 2008 16:05:23 GMT</pubDate><dc:creator>ywjcjj</dc:creator></item><item><title>RE: what is the easiest way to change column name</title><link>http://www.teradata.com/teradataforum/Topic11779-9-1.aspx</link><description>you can do an ALTER TABLE mytbl RENAME COLUMN oldnme TO newnme;However there are restrictions, like you can't rename a column if it's part of an index (for PI you will have to drop and recreate the table, for SI, drop indexes and then rename, create the SI again ...)For the complete list of restrictions, lookup the "Renaming Table Columns" section in data definitions manual.</description><pubDate>Thu, 12 Jun 2008 14:46:45 GMT</pubDate><dc:creator>joedsilva</dc:creator></item><item><title>what is the easiest way to change column name</title><link>http://www.teradata.com/teradataforum/Topic11779-9-1.aspx</link><description>If i want to change column name from 'ABC' to 'ABCD', what is the easiest way to do it. and if the column is one of the primary index, how could i do it?</description><pubDate>Mon, 09 Jun 2008 17:56:27 GMT</pubDate><dc:creator>ywjcjj</dc:creator></item></channel></rss>