pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Michael Fuhr <mike@fuhr.org>
To: Steve - DND <postgres@digitalnothing.com>
Cc: pgsql-sql@postgresql.org
Subject: Re: Junk queries with variables?
Date: Thu, 24 Feb 2005 10:15:32 -0700
Message-ID: <20050224171531.GA53540@winnie.fuhr.org> (raw)
In-Reply-To: <LDEHKBBOEMIJKHKBOFNFEEHCLLAA.postgres@digitalnothing.com>
References: <20050224074045.GA30413@winnie.fuhr.org>
	<LDEHKBBOEMIJKHKBOFNFEEHCLLAA.postgres@digitalnothing.com>

On Thu, Feb 24, 2005 at 10:04:50AM -0700, Steve - DND wrote:

> > \set name '\'Some Name\''
> > SELECT * FROM foo WHERE name = :name;
> 
> Whenever I try the above I get an error at the backslash. Do I need to
> create a different language for this? Right now I only have plpgsql
> available.

Did you try it in psql?  As I mentioned, \set is a psql (client side)
command.

http://www.postgresql.org/docs/8.0/static/app-psql.html

-- 
Michael Fuhr
http://www.fuhr.org/~mfuhr/



view thread (13+ messages)  latest in thread

Message-ID: <20050224171531.GA53540@winnie.fuhr.org>
Permalink:  ../20050224171531.GA53540@winnie.fuhr.org/
Also on:    postgresql.org/message-id/20050224171531.GA53540@winnie.fuhr.org

 · 

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: mike@fuhr.org, postgres@digitalnothing.com
  Subject: Re: Junk queries with variables?
  In-Reply-To: <20050224171531.GA53540@winnie.fuhr.org>

* 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