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

  • SEARCH
  • Home
  • 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 7663471
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T14:04:00+00:00 2026-05-31T14:04:00+00:00

Background I have an oracle database table with a lot of columns that I’m

  • 0

Background

I have an oracle database table with a lot of columns that I’m running some queries on.

I don’t know exactly what data I’m looking for in my query, so I want to return all columns, but I don’t want to hunt and peck for columns I know are meaningful.

Question

Supposing a table (Table 1) with Column A, Column B, Column C….Column Z —

Is there a way to essentially say “Select Column C, Column J, Column F, Column Q, and then the rest of the columns From Table 1” ?

Things I’ve Tried

Keeping with pseudo-sql, Running:

Select Column C, Column J, Column F, Table1.* from Table1

Doesn’t help, because even though I don’t mind the duplicates, oracle sees them as ambiguously defined columns and thus returns an error.

  • 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-31T14:04:01+00:00Added an answer on May 31, 2026 at 2:04 pm

    There is no nice and easy way to do this, other than specifying each column.

    But if you don’t mind the duplicates and you don’t care about the column names, you could alias those columns:

    Select 
      ColumnC as ColumnC1, 
      ColumnJ as ColumnJ1, 
      ColumnF as ColumnF1,
      t.* 
    from 
      Table1 as t
    

    Just for demonstration, I aliased Table1 as well. You may omit the as keyword, but I feel it makes it a little more readable.

    Do note that while these extra columns are not at all difficult for Oracle to query, they do generate extra traffic. For testing, this solution is fine, but in production code, I would opt to only select the columns you need, and only select them once. It’s only a little extra work. After all, how many columns do you have? 🙂

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

Sidebar

Related Questions

Background - I have a client that has an Oracle database with many procedures
Background I have a dimension table that has a single record for each day.
Background: I have a ListView / GridView with several columns. In some situations, only
Background: We have a Webservice that is running under axis2 on a Tomcat. We
my question is, with some background: I have to generate some sql queries based
I have an Oracle background, and using Indexed organized tables (IOT) for every table
We have an Oracle database, and the customer account table has about a million
Background I have a custom collection that is binded to the datagridview this.datagridview.DataSource =
Background: I have a WCF service deployed on my local machine that in turns
Background : I have a asp.net webapplication project that should contain a public and

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.