|
|
|
Ten Centuries
      
Group: General Forum Members
Last Login: Yesterday @ 11:39 PM
Points: 1,133,
Visits: 856
|
|
|
|
|
|
SSC Eights!
      
Group: General Forum Members
Last Login: Thursday, May 16, 2013 5:30 AM
Points: 861,
Visits: 1,436
|
|
Thank you for the question but I guess that's straightforward.
The "AS colX" parts of the SELECT statement are aliases to the columns returned by the SELECT statement and they don't reference column positions. The INSERT statement will follow the order specified inside the parenthesis and if no columns were specified in that statement, it will follow the creation order of the columns.
Best regards,
Best regards,
Andre Guerreiro Neto
Database Analyst http://www.softplan.com.br MCITPx1/MCTSx2
|
|
|
|
|
SSCoach
         
Group: General Forum Members
Last Login: Today @ 10:25 AM
Points: 18,754,
Visits: 12,337
|
|
|
|
|
|
SSCrazy Eights
        
Group: General Forum Members
Last Login: Today @ 2:11 AM
Points: 9,378,
Visits: 6,473
|
|
|
|
|
|
SSC Eights!
      
Group: General Forum Members
Last Login: Today @ 12:06 AM
Points: 849,
Visits: 323
|
|
Thanks, but easy!
|
|
|
|
|
Ten Centuries
      
Group: General Forum Members
Last Login: Friday, May 17, 2013 4:24 AM
Points: 1,161,
Visits: 642
|
|
| So QOTD is a double bluff today...
|
|
|
|
|
SSC-Insane
         
Group: General Forum Members
Last Login: Today @ 4:09 AM
Points: 21,357,
Visits: 9,539
|
|
Koen Verbeeck (11/28/2011)
(and I was looking frantically for 5 minutes to find the "catch".  )
Glad to see I had so much effects on you all .
|
|
|
|
|
Ten Centuries
      
Group: General Forum Members
Last Login: Yesterday @ 11:39 PM
Points: 1,133,
Visits: 856
|
|
Well, since I wrote it up as a QotD, you may not need three guesses as to who went into this "trap" big time.
I've spent a few hours, before I noticed the bug.
|
|
|
|
|
Ten Centuries
      
Group: General Forum Members
Last Login: Monday, September 17, 2012 7:30 AM
Points: 1,038,
Visits: 679
|
|
|
|
|
|
Valued Member
      
Group: General Forum Members
Last Login: Monday, May 20, 2013 7:31 AM
Points: 58,
Visits: 540
|
|
I've spent a few hours, before I noticed the bug.
It may just be me, but I wouldn't class this a bug, if that's what are you are saying, the AS is (as has been stated in this post) for the alias, it has no bearing on the order of the insert.
None the less a fun question, so thank you.
Nic
|
|
|
|