' escape

Поиск
Список
Период
Сортировка
От Fabio Mancinelli
Тема ' escape
Дата
Msg-id Pine.GSO.3.96.981207162742.896B-100000@brutus
обсуждение исходный текст
Ответы Re: [SQL] ' escape
Re: [SQL] ' escape
Список 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 по дате отправления:

Предыдущее
От: joerg.troester@gmx.net
Дата:
Сообщение: Inheritance and origin of rows
Следующее
От: Herouth Maoz
Дата:
Сообщение: Re: [SQL] ' escape