?
Solved

How to select column name and * in Oracle?

Posted on 2012-03-25
3
Medium Priority
?
657 Views
Last Modified: 2012-08-14
Hello Experts,
Can anyone tell me how to select a specific column first in the select statement then all other columns in the table?
In Sybase I can do something like this:
select column_name,* from table_name;

Thanks in advance
0
Comment
Question by:Ramez
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 8

Accepted Solution

by:
mustaccio earned 1600 total points
ID: 37762864
Try
select column_name, t.* from table_name t

Open in new window

0
 
LVL 70

Assisted Solution

by:Qlemo
Qlemo earned 400 total points
ID: 37762889
Yes, that works. But remember that * will list the same columns again - something like "select all other columns" does not exist in SQL ;-).
0
 

Author Comment

by:Ramez
ID: 37762897
Thans a lot Mustaccio
0

Featured Post

NFR key for Veeam Backup for Microsoft Office 365

Veeam is happy to provide a free NFR license (for 1 year, up to 10 users). This license allows for the non‑production use of Veeam Backup for Microsoft Office 365 in your home lab without any feature limitations.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Cursors in Oracle: A cursor is used to process individual rows returned by database system for a query. In oracle every SQL statement executed by the oracle server has a private area. This area contains information about the SQL statement and the…
From implementing a password expiration date, to datatype conversions and file export options, these are some useful settings I've found in Jasper Server.
Video by: Steve
Using examples as well as descriptions, step through each of the common simple join types, explaining differences in syntax, differences in expected outputs and showing how the queries run along with the actual outputs based upon a simple set of dem…
This video shows how to configure and send email from and Oracle database using both UTL_SMTP and UTL_MAIL, as well as comparing UTL_SMTP to a manual SMTP conversation with a mail server.
Suggested Courses

770 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question