From: Fabio Mancinelli <mancinel@univaq.it>
To: pgsql-sql@postgresql.org
Subject: ' escape
Date: Mon, 7 Dec 1998 16:31:31 +0100 (MET)
Message-ID: <Pine.GSO.3.96.981207162742.896B-100000@brutus> (raw)
Hello all
I have a question. When I create a table I cannot use any escape to put a
' character in the default field definition.
CREATE TABLE Test (name varchar(128) default 'Something with '' into');
Fails. I've tried also other alternatives :
default "Something with ' into"
default "Something with '' into"
default 'Something with \' into'
default 'Something with \27 into'
default 'Something with \0x27 into'
Everything fails.
How can I set a default with a string containing a ' ?
Thank you all.
Bye
----------------------------------------------------------------------------
Greetings from Fabio Mancinelli E-Mail : mancinel@univaq.it
Computer Science Student xenon@olografix.org
University of L'Aquila WWW : http://univaq.it/~mancinel
(PGP Public Key available) http://www.olografix.org/xenon
A.L.U. Member
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 from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-sql@postgresql.org
Cc: mancinel@univaq.it
Subject: Re: ' escape
In-Reply-To: <Pine.GSO.3.96.981207162742.896B-100000@brutus>
References: <Pine.GSO.3.96.981207162742.896B-100000@brutus>
* 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