Re: [SQL] \copy...

2000-06-20 Thread Webb Sprague
Finally--a question I think I can answer! You need to specify what delimiters you use in your .dat file; the default for COPY is tab, but you can change that to | with copy tablename from '/home/ed/import.dat' delimiters '|' Hope this works...(oops--I mean 'helps') --- Ed [EMAIL

[SQL] Optimizing huge inserts/copy's

2000-08-29 Thread Webb Sprague
Hi all, Does anybody have any thoughts on optimizing a huge insert, involving something like 3 million records all at once? Should I drop my indices before doing the copy, and then create them after? I keep a tab-delimited file as a buffer, copy it, then do it again about 400 times. Each

Re: [SQL] Create Primary Key + Massive Copy's?

2000-08-29 Thread Webb Sprague
as NOT NULL already, adding a unique index to the columns in question has the same general effect. Stephan Szabo [EMAIL PROTECTED] On Tue, 29 Aug 2000, Webb Sprague wrote: Apropos of my last question: Is there syntax to create a primary key after the table has been defined

Re: [SQL] Optimizing huge inserts/copy's

2000-08-30 Thread Webb Sprague
I am experimenting with this too. If I have any indexes at all, the copy's get VERY SLOW as the table gets big. Delete ALL your indexes, do your copy's, and then create your indexes again. Good luck. --- Jie Liang [EMAIL PROTECTED] wrote: Hi, there, I tried different ways, include vaccum

[SQL] Convert from Seconds-Since-Epoch to Timestamp

2000-09-21 Thread Webb Sprague
Hi all, How do I convert from seconds (an integer) to timestamp? I am sure it is easy, but I can't find it in the docs, so far. Thanks Webb __ Do You Yahoo!? Send instant messages get email alerts with Yahoo! Messenger. http://im.yahoo.com/

[SQL] Simultaneous Connection Problem

2000-12-28 Thread Webb Sprague
. Thanks, -- Webb Sprague Programmer O1 Communications