Re: ERROR: parser: parse error at or near "'"

From: Rod Taylor <rbt(at)zort(dot)ca>
To: * * <southpark2407(at)hotmail(dot)com>
Cc: pgsql-bugs(at)postgresql(dot)org
Subject: Re: ERROR: parser: parse error at or near "'"
Date: 2002-09-03 14:59:08
Message-ID: 1031065149.43658.38.camel@jester
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

Single single quote literals, double quote literals.

'profiles' => "profiles"

On Tue, 2002-09-03 at 10:56, * * wrote:
> I'm getting the error ERROR: parser: parse error at or near "'"
> This is my sql statement in my servlet and i don't see what's wrong with it.
>
> SQL = "Select users.first_name, users.last_name, profiles.profile_name,
> countries.city, countries.province" +
> "countries.country, users.email_address FROM 'profiles' INNER
> JOIN companies ON profiles.owner_id_bus. = companies.company_id" +
> "INNER JOIN users ON companies.default_contact_id =
> users.user_id INNER JOIN countries ON companies.location_id = countries.id"
> +
> "WHERE profiles.profile_name ='" + strName + "'";ERROR: parser:
> parse error at or near "'"
>
>
>
> _________________________________________________________________
> Join the world’s largest e-mail service with MSN Hotmail.
> http://www.hotmail.com
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 5: Have you checked our extensive FAQ?
>
> http://www.postgresql.org/users-lounge/docs/faq.html
>

In response to

Browse pgsql-bugs by date

  From Date Subject
Next Message gianpaolo racca 2002-09-03 15:42:56 bug in contrib/contrib-global.mk
Previous Message * * 2002-09-03 14:56:04 ERROR: parser: parse error at or near "'"