Oracle Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsDatabasesOracle Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old June 4th, 2005, 08:24 AM
jst666 jst666 is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Nov 2004
Location: Töölö
Posts: 370 jst666 User rank is Second Lieutenant (5000 - 10000 Reputation Level)jst666 User rank is Second Lieutenant (5000 - 10000 Reputation Level)jst666 User rank is Second Lieutenant (5000 - 10000 Reputation Level)jst666 User rank is Second Lieutenant (5000 - 10000 Reputation Level)jst666 User rank is Second Lieutenant (5000 - 10000 Reputation Level)jst666 User rank is Second Lieutenant (5000 - 10000 Reputation Level)jst666 User rank is Second Lieutenant (5000 - 10000 Reputation Level) 
Time spent in forums: 5 Days 10 h 47 m 31 sec
Reputation Power: 78
Rename table / foreign keys

Cheers!

During development of a software, I run in to urge to rename a table, and creating a view to retrieve data for that table. And I'd like to mention, that I'm not that much familiar with Oracle (or DBA stuff anyways). What kinds of problems I might run to? And perhaps my main point: what happens to foreign key -relations? Do I need to alter each and every one of them, or doest the system automatically update them? If it doesn't, could I do all this in one query, like:
Code:
ALTER TABLE X RENAME TO Y; CREATE VIEW X AS SELECT * FROM Y WHERE FUNKY_CONDITION; COMMIT;


Thanks for ideas,
jussi the Hangover-Worker

Reply With Quote
  #2  
Old June 10th, 2005, 05:25 PM
ColmD ColmD is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2005
Posts: 21 ColmD User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 3 h 30 m 47 sec
Reputation Power: 0
Try this link for some info.


http://www.dizwell.com/html/rename_a_table.html

Reply With Quote
Reply

Viewing: Dev Shed ForumsDatabasesOracle Development > Rename table / foreign keys


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 4 hosted by Hostway
Stay green...Green IT