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 8668909
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T18:19:52+00:00 2026-06-12T18:19:52+00:00

I am doing an autojoin on a table (lets say with table aliases current,

  • 0

I am doing an autojoin on a table (lets say with table aliases current, prev, next) but am only interested in the columns of current.
Is there a way (without explicitly enumerating them) to limit the columns of the result set to that of current?
Something less complex (no metatable querying or even something that is entirely DB agnostic) than this: sql select with column name like would be fantastic. As I impose some specific constraints on my requirement (select all colums of the original/current table), my hope is that there is something easy that I am missing. In the end, I’d be happy with a Postgres specific solution as well.

Using Postgres, a statment like

 SELECT current FROM ...

indeed nearly provides what I want except that everything now is merged into a single comma separated text column.

  • 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-06-12T18:19:54+00:00Added an answer on June 12, 2026 at 6:19 pm

    Sure this is possible:

    select current.*
    from some_table current
       join other_table prev on prev.fid = current.id
       join third_table nxt on nxt.oid = prev.id
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Doing so select name from sqlite_master where type='table' but I need to display all
Doing a mysqli query and COUNTing the results, is there a preferred comparison operator
Doing a simple Squeryl database lookup, but trying to exclude a value. I've tried:
Doing a search using django-sphinx gives me results._sphinx that says there were 68 results,
Doing this works in IE7: <a href= target=_blank>Link</a> But in IE8 it open a
doing this in AppDelegate: viewController = [[RootViewController alloc] initWithNibName:nil bundle:nil]; Is there any problem
Doing some inline assembly in clang (basically guessing my way through by using various
Doing validation in my binder, I'm wondering if there's a need to check the
Doing a german site, and have a JS alert to say you havn't completed
Doing a Socket.Receive(byte[]) will get the bytes in from the buffer, but if the

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.