Solved

Column Order While Inserting a Subset Of Columns Of Table to Another Table

Posted on 2014-11-20
1
261 Views
Last Modified: 2014-11-20
Dear Experts,

I have table TA with columns a, b, c, d, e, f.  I have table TB with columns x, y, z, t. I'll insert columns a, d, e, f into table TB using Insert statement with Select. Is below statement correct without using AS keyword for column mappings?

BR

insert into TB (x,y,z,t) select a,d,e,f from TA;  

Note: AS keyword will not be used.
0
Comment
Question by:GurcanK
1 Comment
 
LVL 76

Accepted Solution

by:
slightwv (䄆 Netminder) earned 500 total points
ID: 40455156
Looks good to me.  The AS after a column just sets the column alias.  Has nothing to do with an insert with select.
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.

Join & Write a Comment

This article started out as an Experts-Exchange question, which then grew into a quick tip to go along with an IOUG presentation for the Collaborate confernce and then later grew again into a full blown article with expanded functionality and legacy…
Using SQL Scripts we can save all the SQL queries as files that we use very frequently on our database later point of time. This is one of the feature present under SQL Workshop in Oracle Application Express.
This video shows, step by step, how to configure Oracle Heterogeneous Services via the Generic Gateway Agent in order to make a connection from an Oracle session and access a remote SQL Server database table.
This video shows information on the Oracle Data Dictionary, starting with the Oracle documentation, explaining the different types of Data Dictionary views available by group and permissions as well as giving examples on how to retrieve data from th…

758 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

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now