pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Russell Smith <mr-russ@pws.com.au>
To: Gourish Singbal <gourish@gmail.com>
Cc: pgsql-performance@postgresql.org
Subject: Re: column name is "LIMIT"
Date: Mon, 14 Mar 2005 18:25:22 +1100
Message-ID: <200503141825.22827.mr-russ@pws.com.au> (raw)
In-Reply-To: <674d1f8a0503132314754df153@mail.gmail.com>
References: <674d1f8a0503132314754df153@mail.gmail.com>

On Mon, 14 Mar 2005 06:14 pm, Gourish Singbal wrote:
> Guys,
> 
> I am having a problem firing queries on one of the tables which is
> having "limit" as the column name.
> 
> If a run an insert/select/update command on that table i get the below error.
> 
> ERROR:  syntax error at or near "limit" at character 71

select "limit" from limit_table WHERE "limit" < 50 LIMIT 2;

You need to quote the field name, and make sure the case is correct.
> 
> Any Help would be realyl great to solve the problem.
> 
> postgresql 7.4.5 and linux OS
> 
You should probably upgrade to 7.4.7

Regards

Russell Smith.



view thread (13+ messages)  latest in thread

Message-ID: <200503141825.22827.mr-russ@pws.com.au>
Permalink:  ../200503141825.22827.mr-russ@pws.com.au/
Also on:    postgresql.org/message-id/200503141825.22827.mr-russ@pws.com.au

 · 

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-performance@postgresql.org
  Cc: mr-russ@pws.com.au, gourish@gmail.com
  Subject: Re: column name is "LIMIT"
  In-Reply-To: <200503141825.22827.mr-russ@pws.com.au>

* 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