Re: how to select

Started by Brian Wongover 20 years ago4 messagesgeneral
Jump to latest
#1Brian Wong
bwlist@gmail.com

On 7/29/05, Jonathan Villa <jvilla@innovativesource.net> wrote:

now I want to select
#select someColumn from testtable

I get nothing... no output, nothing...

Try terminating the statement with ';'?

#2Jonathan Villa
jvilla@innovativesource.net
In reply to: Brian Wong (#1)

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...

-Jonathan

<quote who="Brian Wong">

Show quoted text

On 7/29/05, Jonathan Villa <jvilla@innovativesource.net> wrote:

now I want to select
#select someColumn from testtable

I get nothing... no output, nothing...

Try terminating the statement with ';'?

#3Jaime Casanova
jcasanov@systemguards.com.ec
In reply to: Jonathan Villa (#2)

On 7/29/05, Jonathan Villa <jvilla@innovativesource.net> 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...

that's because you type a select without a semicolon then you write
one with the semicolon so the parser think both are only one command
but refused to execute that bad formed sentence and give you the
error... then you put another sentence and, of cuorse it executed...

you just show us 2 sentences one before the error and one after...

am i right?

--
Atentamente,
Jaime Casanova
(DBA: DataBase Aniquilator ;)

#4Jonathan Villa
jvilla@innovativesource.net
In reply to: Jaime Casanova (#3)

-Jonathan

<quote who="Jaime Casanova">

On 7/29/05, Jonathan Villa <jvilla@innovativesource.net> 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...

that's because you type a select without a semicolon then you write
one with the semicolon so the parser think both are only one command
but refused to execute that bad formed sentence and give you the
error... then you put another sentence and, of cuorse it executed...

you just show us 2 sentences one before the error and one after...

am i right?

--
Atentamente,
Jaime Casanova
(DBA: DataBase Aniquilator ;)

I feel about this small -> .

Of course it's the semicolon... I guess I'm just used to MySQL where I would get this

select user from table (hit enter)
->