TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Reordering Columns in PostgreSQL

2 pointsby HNBRNover 2 years ago
This is kind of a stupid question but I see lot of people here recommend postgresql so I decided to give it a try.<p>I stumbled upon the fact that it&#x27;s not possible to rearrange columns ordering.<p>Is this not too much of a constraint ? I mean what&#x27;s the workaround for eg for the analysts using it daily ? Columns just pile at the end of every table without any consistency ?<p>Sorry for the broken english (french)

3 comments

rangerelfover 2 years ago
The order of the columns in your table creation statements is irrelevant to the order of how the columns return to you in your queries.<p>Your select statement specified the order of your result columns in your result set. Your visualization tools should have the option to reorder the displayed columns to your liking or need.
评论 #34282784 未加载
评论 #34261242 未加载
sargstuffover 2 years ago
Alternate interpretation of explaination:<p><a href="https:&#x2F;&#x2F;www.quackit.com&#x2F;sql&#x2F;tutorial&#x2F;sql_order_by.cfm" rel="nofollow">https:&#x2F;&#x2F;www.quackit.com&#x2F;sql&#x2F;tutorial&#x2F;sql_order_by.cfm</a><p><a href="https:&#x2F;&#x2F;www.tutorialsteacher.com&#x2F;sqlserver&#x2F;orderby" rel="nofollow">https:&#x2F;&#x2F;www.tutorialsteacher.com&#x2F;sqlserver&#x2F;orderby</a><p><a href="https:&#x2F;&#x2F;www.tutorialsteacher.com&#x2F;sqlserver&#x2F;orderby" rel="nofollow">https:&#x2F;&#x2F;www.tutorialsteacher.com&#x2F;sqlserver&#x2F;orderby</a>
wcorralesover 2 years ago
<a href="https:&#x2F;&#x2F;github.com&#x2F;TriangleCommunications&#x2F;reorder-table-columns">https:&#x2F;&#x2F;github.com&#x2F;TriangleCommunications&#x2F;reorder-table-colu...</a>
评论 #34266703 未加载
评论 #34272263 未加载