' escape - Mailing list pgsql-sql

From Fabio Mancinelli
Subject ' escape
Date
Msg-id Pine.GSO.3.96.981207162742.896B-100000@brutus
Whole thread Raw
Responses Re: [SQL] ' escape
Re: [SQL] ' escape
List pgsql-sql
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


pgsql-sql by date:

Previous
From: joerg.troester@gmx.net
Date:
Subject: Inheritance and origin of rows
Next
From: Herouth Maoz
Date:
Subject: Re: [SQL] ' escape