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

Closed Thread
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 November 23rd, 2004, 10:25 AM
DigitalDiamond DigitalDiamond is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Nov 2004
Posts: 2 DigitalDiamond User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Question Output from multiple tables

Hi Can anyone help me with this,

I am trying to write a PL/SQL function that takes in id and updates all records with that id somewhere in them, throughout the database and sets a flag to Y. Now i have done this part but i also want to output to a file all the fields of all the records that now have this flag set to Y, is there a quick way to do this other than to go through each table and output the records one at a time.

Now i know this doesnt seem like a problem but i need each field of the record seperated like below and it would need about 200 lines of code to output the data like this the long way

id | something | flag | other id

Reply With Quote
  #2  
Old November 23rd, 2004, 10:39 AM
DigitalDiamond DigitalDiamond is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Nov 2004
Posts: 2 DigitalDiamond User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Sorry just realised that is not very clear what i am really after is a query that looks something like this
Select *
From everytable in database
where flag = 'y'

is this possible?
Or does the old problems of joins get in the way (you can see i'm new to pl/sql)

Reply With Quote
Closed Thread

Viewing: Dev Shed ForumsDatabasesOracle Development > Output from multiple tables


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