sobrique: (Default)
[personal profile] sobrique
In SQL.
"SELECT INTO" will clobber what was in the table originally.
This means it's not a good idea if you've just spent half an hour populating that table already.

Grr.

Oh well, at least I still have the source data and translation scripts.

Date: 2005-11-04 12:38 pm (UTC)
From: [identity profile] necessitysslave.livejournal.com
been there done that spent 4 hours sorting out the mistake

Date: 2005-11-04 01:03 pm (UTC)
From: [identity profile] xarrion.livejournal.com
learning the difference between SELECT INTO and INSERT INTO is one most people learn the hard way ;)

Date: 2005-11-04 01:20 pm (UTC)
From: [identity profile] sobrique.livejournal.com
I just did.
Thankfully the contents of that table were mostly populated from a spreadsheet that I still had (and so just had to hack together the SQL again).

Date: 2005-11-04 01:02 pm (UTC)
From: [identity profile] xarrion.livejournal.com
isn't SQL joyous :)
I've been teaching our gas team the wonders of SQL* recently.


*also called 'Access would take 3 hours to run that query. Do it my way.'.

Date: 2005-11-04 01:21 pm (UTC)
From: [identity profile] sobrique.livejournal.com
Annoyingly I'm having to use SQL server 2000, rather than Oracle. (Licensing, features reasons - the app wants to use something that you don't get without oracle enterprise, despite the fact that SQL Server doesn't have that feature)

Date: 2005-11-04 01:32 pm (UTC)
From: [identity profile] xarrion.livejournal.com
hehe. Although from my occasional forays into MSDN, it appears that SQL Server has its own set of features independent of SQL, and likes using a sliiightly different terminology too.
The reason for the team having problems at the moment is that the Microsoft ODBC drivers really, really don't play nice with Oracle package views.

Date: 2005-11-04 01:45 pm (UTC)
From: [identity profile] warmage.livejournal.com
...and are slow like molasses in january to boot.

Profile

sobrique: (Default)
sobrique

December 2015

S M T W T F S
  12345
6789101112
13141516171819
20212223242526
2728 293031  

Most Popular Tags

Style Credit

Expand Cut Tags

No cut tags
Page generated Mar. 12th, 2026 05:47 am
Powered by Dreamwidth Studios