Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 5964463
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T19:26:13+00:00 2026-05-22T19:26:13+00:00

Say i have something like this: somerecord SOMETABLE%ROWTYPE; Is it possible to access the

  • 0

Say i have something like this:

somerecord SOMETABLE%ROWTYPE;

Is it possible to access the fields of somerecord with out knowing the fields names?
Something like somerecord[i] such that the order of fields would be the same as the column order in the table?

I have seen a few examples using dynamic sql but i was wondering if there is a cleaner way of doing this.

What i am trying to do is generate/get the DML (insert query) for a specific row in my table but i havent been able to find anything on this.

If there is another way of doing this i’d be happy to use but would also be very curious in knowing how to do the former part of this question – it’s more versatile.

Thanks

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-22T19:26:14+00:00Added an answer on May 22, 2026 at 7:26 pm

    This doesn’t exactly answer the question you asked, but might get you the result you want…

    You can query the USER_TAB_COLUMNS view (or the other similar *_TAB_COLUMN views) to get information like the column name (COLUMN_NAME), position (COLUMN_ID), and data type (DATA_TYPE) on the columns in a table (or a view) that you might use to generate DML.

    You would still need to use dynamic SQL to execute the generated DML (or at least generate static SQL separately).

    However, this approach won’t work for identifying the columns in an arbitrary query (unless you create a view of it). If you need that, you might need to resort to DBMS_SQL (or other tools).

    Hope this helps.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Let's say I have something like this: select sum(points) as total_points from sometable where
Say I have something like this: <p> <br><br> <img id='unique'> <br> </p> I want
Say I have something like this, which sends unhanded exceptions to logging.critical() : import
Let say I have something like this: id | title | 1 | First
So let's say you have something like this: Class Person: height = 6' 0
Let's say I have something like this: $db=new PDO($dsn); $statement=$db->query('Select * from foo'); while
In my view, let's say I have something like this: <%= f.text_field :name_first %>
Let's say that I have something like this in my web.xml file. <filter name=foo>
Let's say I started a thread and I have something like this: ...//initiate all
Let's say I have a MySQL table that is something like this: software table:

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.