Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Mailing Lists -> Oracle-L -> RE: Pl/Sql renaming columns
Roland,
Using Double Quotes may overcome the problem:
SQL> create table junque ("18-jun-02" date);
Table created.
SQL> desc junque
Name Null? Type ------------------------------- -------- ---- 18-jun-02 DATE
SQL> SQL> drop table junque;
Table dropped.
SQL>
Or the same example..................
1* create table junque (&&colm date)
SQL> /
Enter value for 2: "19-jun-02"
old 1: create table junque (&&colm date)
new 1: create table junque ("19-jun-02" date)
Table created.
SQL> desc junque
Name Null? Type ------------------------------- -------- ---- 19-jun-02 DATE
SQL>
SQL> drop table junque
2 /
Table dropped.
SQL> This is on a 7.3.4 database but should work with 8i and 9i too.
HTH,
Vikram Khushalani
Oracle DBA
-----Original Message-----
Sent: Wednesday, June 19, 2002 10:33 AM
To: Multiple recipients of list ORACLE-L
That's an invalid column name format.
1* create table junque (&&1 date);
Enter value for 1: 19-jun-02
old 1: create table junque (&&1 date)
new 1: create table junque (19-jun-02 date)
create table junque (19-jun-02 date)
*
But the example above should give some ideas on how it could be done.
Roland.Skoldb lom To: Multiple recipients of list ORACLE-L @ica.se <ORACLE-L_at_fatcity.com> Sent by: root cc: Subject: Pl/Sql renaming columns 06/19/2002 07:23 AM Please respond to ORACLE-L
Hallo,
Anyone who has any good hint on how to write pl/sql if i wantto chang ethe
name
of the fields everytime the procedur runs?
The field names should be 1-JULI-2002 the first time the procedur runs, the
next time the procedur runs the name of procedur should be 1-AUG-2002 etc.
Please help me with this.
I have tried to look in the manual, but cant find any clue.
Thanks in advance
Roland
--
Please see the official ORACLE-L FAQ: http://www.orafaq.com
--
Author:
INET: Roland.Skoldblom_at_ica.se
Fat City Network Services -- (858) 538-5051 FAX: (858) 538-5051 San Diego, California -- Public Internet access / Mailing Liststo: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the name of mailing list you want to be removed from). You may also send the HELP command for other information (like subscribing).
--------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message
--
Please see the official ORACLE-L FAQ: http://www.orafaq.com
--
Author: Thomas Day
INET: tday6_at_csc.com
Fat City Network Services -- (858) 538-5051 FAX: (858) 538-5051 San Diego, California -- Public Internet access / Mailing Liststo: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the name of mailing list you want to be removed from). You may also send the HELP command for other information (like subscribing).
--------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message
Fat City Network Services -- (858) 538-5051 FAX: (858) 538-5051 San Diego, California -- Public Internet access / Mailing Liststo: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the name of mailing list you want to be removed from). You may also send the HELP command for other information (like subscribing). Received on Wed Jun 19 2002 - 10:28:49 CDT
--------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message
![]() |
![]() |