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
Solved

How to select column name and * in Oracle?

Posted on 2012-03-25
3
636 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
3 Comments
 
LVL 8

Accepted Solution

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

Open in new window

0
 
LVL 69

Assisted Solution

by:Qlemo
Qlemo earned 100 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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

Why doesn't the Oracle optimizer use my index? Querying too much data Most Oracle developers know that an index is useful when you can use it to restrict your result set to a small number of the total rows in a table. So, the obvious side…
Truncate is a DDL Command where as Delete is a DML Command. Both will delete data from table, but what is the difference between these below statements truncate table <table_name> ?? delete from <table_name> ?? The first command cannot be …
This video shows setup options and the basic steps and syntax for duplicating (cloning) a database from one instance to another. Examples are given for duplicating to the same machine and to different machines
This video shows syntax for various backup options while discussing how the different basic backup types work.  It explains how to take full backups, incremental level 0 backups, incremental level 1 backups in both differential and cumulative mode a…

856 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