pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: PropAAS DBA <dba@propaas.com>
To: pgsql-sql@postgresql.org
Subject: Odd sql error ..
Date: Sat, 16 Sep 2017 21:01:21 -0600
Message-ID: <c9c0defe-49f0-0dd6-6b5a-6414731b910a@propaas.com> (raw)
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-sql>

I'm running this sql (see below) and I get this error:

ERROR:  column "last_modified" does not exist
LINE 3: ...repricefee"  , "tot_savings"  , "last_updated"  , "last_modi...
                                                              ^
HINT:  There is a column named "last_modified" in table "mytable", but 
it can
not be referenced from this part of the query.


Thoughts?




INSERT INTO myschema.mytable
                (  "invoiceseq"  , "claseq"  , "clasub"  , "invby"  , 
"invrectyp"
   , "invstatus"  , "invnum"  , "createdate"  , "postdate"  , "invdate"  ,
"invamt"  , "preinvnum"  , "preinvamt"  , "billed"  , "adjpaid"  , 
"expenses"  ,
"first_reviewsav"  , "first_reviewfee"  , "first_appealfee"  , 
"first_fraudsav"  ,
"first_fraudfee"  , "first_repricesav"  , "first_repricefee"  , 
"dent_reviewsav"
, "dent_reviewfee"  , "dent_appealfee"  , "dent_fraudsav"  , 
"dent_fraudfee"  ,
"dent_repricesav"  , "dent_repricefee"  , "fac_reviewsav"  , 
"fac_reviewfee"  ,
"fac_appealfee"  , "fac_fraudsav"  , "fac_fraudfee"  , "fac_repricesav"  ,
"fac_repricefee"  , "tot_savings"  , "last_updated"  , "last_modified"  )
                SELECT  "invoiceseq"  , "claseq"  , "clasub"  , "invby"  
, "invrectyp"  ,
"invstatus"  , "invnum"  , "createdate"  , "postdate"  , "invdate" , "
invamt"  , "preinvnum"  , "preinvamt"  , "billed"  , "adjpaid"  , 
"expenses"  ,
"first_reviewsav"  , "first_reviewfee"  , "first_appealfee"  , 
"first_fraudsav"
  , "first_fraudfee"  , "first_repricesav"  , "first_repricefee"  ,
"dent_reviewsav"  , "dent_reviewfee"  , "dent_appealfee"  , 
"dent_fraudsav"  ,
"dent_fraudfee"  , "dent_repricesav"  , "dent_repricefee"  , 
"fac_reviewsav"  ,
"fac_reviewfee"  , "fac_appealfee"  , "fac_fraudsav"  , "fac_fraudfee"  
, "fac_repricesav"  ,
"fac_repricefee"  , "tot_savings"  , "last_updated"  , "last_modified"
                FROM old_schema.mytable

view thread (2+ messages)  latest in thread

Message-ID: <c9c0defe-49f0-0dd6-6b5a-6414731b910a@propaas.com>
Permalink:  ../c9c0defe-49f0-0dd6-6b5a-6414731b910a@propaas.com/
Also on:    postgresql.org/message-id/c9c0defe-49f0-0dd6-6b5a-6414731b910a@propaas.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: dba@propaas.com
  Subject: Re: Odd sql error ..
  In-Reply-To: <c9c0defe-49f0-0dd6-6b5a-6414731b910a@propaas.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox