dbTalk Databases Forums  

Looping through column values in a record without specifying columnnames?

comp.databases.oracle.misc comp.databases.oracle.misc


Discuss Looping through column values in a record without specifying columnnames? in the comp.databases.oracle.misc forum.



Reply
 
Thread Tools Display Modes
  #41  
Old   
DA Morgan
 
Posts: n/a

Default Re: Looping through column values in a record without specifyingcolumn names? - 03-06-2008 , 05:06 AM






dananrg (AT) yahoo (DOT) com wrote:
Quote:
Daniel, I'm going to look for your code and try it out today. If in
the mean time you want to post a snippet here, that would be great.
Evidently I'm not the only one confused about accomplishing this task
through PL/SQL.

If it can be done, it would be great to post the code here for others
to learn from.
Look at the following demo:
http://www.psoug.org/reference/dbms_sql.html

Note the defined data types.
Read through the various procedure names.

It isn't easy ... but it can be done unless I am totally
misunderstanding what you are trying to accomplish.
--
Daniel A. Morgan
Oracle Ace Director & Instructor
University of Washington
damorgan@x.washington.edu (replace x with u to respond)
Puget Sound Oracle Users Group
www.psoug.org


Reply With Quote
  #42  
Old   
Thomas Olszewicki
 
Posts: n/a

Default Re: Looping through column values in a record without specifyingcolumn names? - 03-06-2008 , 08:31 AM






On Mar 6, 5:16*am, dana... (AT) yahoo (DOT) com wrote:
Quote:
Daniel, I'm going to look for your code and try it out today. If in
the mean time you want to post a snippet here, that would be great.
Evidently I'm not the only one confused about accomplishing this task
through PL/SQL.

If it can be done, it would be great to post the code here for others
to learn from.
Dana,
As I said before, the only method I know of is to use :
DBMS_SQL with describe_columns parocedure.
Look at the examples:
1. http://www.oracle.com/technology/ora...03/042003.html
2. http://www.oracle.com/technology/ora.../o36plsql.html
search for :Obtaining the Names of Columns in a Dynamic Select

HTH
Thomas


Reply With Quote
  #43  
Old   
Thomas Olszewicki
 
Posts: n/a

Default Re: Looping through column values in a record without specifyingcolumn names? - 03-06-2008 , 08:31 AM



On Mar 6, 5:16*am, dana... (AT) yahoo (DOT) com wrote:
Quote:
Daniel, I'm going to look for your code and try it out today. If in
the mean time you want to post a snippet here, that would be great.
Evidently I'm not the only one confused about accomplishing this task
through PL/SQL.

If it can be done, it would be great to post the code here for others
to learn from.
Dana,
As I said before, the only method I know of is to use :
DBMS_SQL with describe_columns parocedure.
Look at the examples:
1. http://www.oracle.com/technology/ora...03/042003.html
2. http://www.oracle.com/technology/ora.../o36plsql.html
search for :Obtaining the Names of Columns in a Dynamic Select

HTH
Thomas


Reply With Quote
  #44  
Old   
Thomas Olszewicki
 
Posts: n/a

Default Re: Looping through column values in a record without specifyingcolumn names? - 03-06-2008 , 08:31 AM



On Mar 6, 5:16*am, dana... (AT) yahoo (DOT) com wrote:
Quote:
Daniel, I'm going to look for your code and try it out today. If in
the mean time you want to post a snippet here, that would be great.
Evidently I'm not the only one confused about accomplishing this task
through PL/SQL.

If it can be done, it would be great to post the code here for others
to learn from.
Dana,
As I said before, the only method I know of is to use :
DBMS_SQL with describe_columns parocedure.
Look at the examples:
1. http://www.oracle.com/technology/ora...03/042003.html
2. http://www.oracle.com/technology/ora.../o36plsql.html
search for :Obtaining the Names of Columns in a Dynamic Select

HTH
Thomas


Reply With Quote
  #45  
Old   
Thomas Olszewicki
 
Posts: n/a

Default Re: Looping through column values in a record without specifyingcolumn names? - 03-06-2008 , 08:31 AM



On Mar 6, 5:16*am, dana... (AT) yahoo (DOT) com wrote:
Quote:
Daniel, I'm going to look for your code and try it out today. If in
the mean time you want to post a snippet here, that would be great.
Evidently I'm not the only one confused about accomplishing this task
through PL/SQL.

If it can be done, it would be great to post the code here for others
to learn from.
Dana,
As I said before, the only method I know of is to use :
DBMS_SQL with describe_columns parocedure.
Look at the examples:
1. http://www.oracle.com/technology/ora...03/042003.html
2. http://www.oracle.com/technology/ora.../o36plsql.html
search for :Obtaining the Names of Columns in a Dynamic Select

HTH
Thomas


Reply With Quote
Reply




Thread Tools
Display Modes

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



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.