Re: how to select - Mailing list pgsql-general

From Scott Marlowe
Subject Re: how to select
Date
Msg-id 1122664656.32465.63.camel@state.g2switchworks.com
Whole thread Raw
In response to Re: how to select  ("Jonathan Villa" <jvilla@innovativesource.net>)
List pgsql-general
On Fri, 2005-07-29 at 14:19, Jonathan Villa wrote:
> Ok, this is odd...
>
> I tried ending with a semicolon before, and received this error
>
> ERROR:  parser: parse error at or near "select"
>
> I have to do it twice before I get it works...here's an example
>
> select project_name from project_group_list;
> ERROR:  parser: parse error at or near "select"
> select project_name from project_group_list;
> ...
> ...
> ...
>
> that's odd...

Not really.  You already had a query queued up and ready to run.
MySQL, by the way, works EXACTLY the same in this context.

mysql> select * from test
    -> select * from test;
ERROR 1064 (42000): You have an error in your SQL syntax; check the
manual that corresponds to your MySQL server version for the right
syntax to use near 'select * from test' at line 2



pgsql-general by date:

Previous
From: Phil Endecott
Date:
Subject: Re: Megabytes of stats saved after every connection
Next
From: Michael Fuhr
Date:
Subject: Re: how to select