Re: [GENERAL] Error in insert statement

2009-07-16 Thread Relyea, Mike
> From: pgsql-general-ow...@postgresql.org > [mailto:pgsql-general-ow...@postgresql.org] On Behalf Of > Thomas Kellerer > Sent: Thursday, July 16, 2009 4:05 PM > To: pgsql-general@postgresql.org > Subject: Re: [GENERAL] Error in insert statement > > Relyea, Mike wrote on

Re: [GENERAL] Error in insert statement

2009-07-16 Thread Relyea, Mike
> From: bricklen [mailto:brick...@gmail.com] > Sent: Thursday, July 16, 2009 4:05 PM > To: Relyea, Mike > Cc: pgsql-general@postgresql.org > Subject: Re: [GENERAL] Error in insert statement > > Try dropping the word "VALUES". > > eg. > INSERT INTO

Re: [GENERAL] Error in insert statement

2009-07-16 Thread bricklen
Try dropping the word "VALUES". eg. INSERT INTO "tblSpecs" ("CartridgeTypeID", "ColorID", "TestTypeID","ZoneID", "PaperID", "AttributeID", "Spec") SELECT "CartridgeTypeID", "ColorID", "TestTypeID","ZoneID", "PaperID", "AttributeID","Spec" from "tblTempSpecs"; On Thu, Jul 16, 2009 at 12:40 PM, Re

Re: [GENERAL] Error in insert statement

2009-07-16 Thread Thomas Kellerer
Relyea, Mike wrote on 16.07.2009 21:40: I need help understanding what I'm doing wrong with an insert statement. I'm running 8.3.7 on Windows and the DB is complaining about the select statement in my insert statement. When using a SELECT for an INSERT the values part is not needed in fact its

[GENERAL] Error in insert statement

2009-07-16 Thread Relyea, Mike
I need help understanding what I'm doing wrong with an insert statement. I'm running 8.3.7 on Windows and the DB is complaining about the select statement in my insert statement. I'm trying to execute DROP TABLE IF EXISTS "tblTempSpecs"; CREATE TEMP TABLE "tblTempSpecs" AS SELECT "tblSpecs"."Cart