473,396 Members | 2,030 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Rename column name

How to rename the column?
i entered "alter table student_19104 rename student_marks to stud_marks"
But it's giving error "missing PARTITION or SUBPARTITION keyword "
Aug 7 '07 #1
4 7228
debasisdas
8,127 Expert 4TB
that feature is available only in oracle version 10g.
Aug 7 '07 #2
gintsp
36
How to rename the column?
i entered "alter table student_19104 rename student_marks to stud_marks"
But it's giving error "missing PARTITION or SUBPARTITION keyword "
You have invalid syntax i.e. lack keyword column
Expand|Select|Wrap|Line Numbers
  1. 17:10:58 SQL> desc z
  2.  Name                                      Null?    Type
  3.  ----------------------------------------- -------- --------------------------
  4.  FF                                        NOT NULL VARCHAR2(10 CHAR)
  5.  
  6. 17:58:39 SQL> alter table z rename column ff to gg;
  7.  
  8. Table altered.
  9.  
  10. Elapsed: 00:00:00.21
  11. 17:59:27 SQL> desc z
  12.  Name                                      Null?    Type
  13.  ----------------------------------------- -------- --------------------------
  14.  GG                                        NOT NULL VARCHAR2(10 CHAR)
  15.  
  16. 17:59:30 SQL> 
It is all written in oracle docs and you can find them http://tahiti.oracle.com

Gints Plivna
Aug 7 '07 #3
Mala232
16
The syntax is

SQL> Alter table <tablename> rename column <old columnname> to <newcolumnname>;

good luck
mala
Aug 8 '07 #4
Hey,thanks it's working.
Aug 8 '07 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

4
by: mokles | last post by:
Hi All, I am trying to change column name on an existing table. I am using SQL Server 7. As the table is quite big, it is taking quite long time to do it. By the way I could change the column...
1
by: Marble | last post by:
Hi all: In DB2 CLP mode ,how to change a column name expect to recreate a table? Thanks . Your friends.
10
by: Colleyville Alan | last post by:
I am trying to turn a short and fat (63 columns) table into one that is tall and skinny (7 columns). Basically, I am trying to create a "reverse crosstab" using a looping structure in VBA along...
11
by: Steven Smith | last post by:
When this event is triggered the following exception error occurs: 'System.Data.SyntaxErrorException' Missing operand after 'of' operator. So presumably it doesn't like the spaces in the column...
3
by: =?Utf-8?B?Sm95?= | last post by:
I am new to VB 2005 Express Edition. I created an SQL Server database according to steps in my book, but I mispelled one of the column names (typo). Is it possible to rename the column or is...
0
by: aris1234 | last post by:
how to rename file name in DB..??? this my code, but this code only save image to folder, can't rename file in DB : <?php //Сheck that we have a file $folder = "../property/$spid";...
5
by: Anne | last post by:
Hello! Here is the statement in question: --STATEMENT A SELECT * FROM dbo.myTable WHERE colX in (SELECT colX FROM dbo.sourceTable) The problem with Statement A is that 'colX' does not exist...
4
by: ShadowLocke | last post by:
Hi, I have a table that has a column with name "comment" in it. I think that "comment" is an oracle keyword so i would like to rename this column. when i use the syntax "alter table tablename...
2
by: Big Daddy | last post by:
For example, if I have a DB table called DownloadPoints with a column named DownloadPointNo, then SqlMetal will create a file with a class called DownloadPoints with an accessor named...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.