Solved

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

Posted on 2014-11-20
1
272 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
[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
1 Comment
 
LVL 77

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

Online Training Solution

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action. Forget about retraining and skyrocket knowledge retention rates.

Question has a verified solution.

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

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 …
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…
This video explains at a high level with the mandatory Oracle Memory processes are as well as touching on some of the more common optional ones.
Via a live example show how to connect to RMAN, make basic configuration settings changes and then take a backup of a demo database

617 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