| From: | "Roberto Andrade Fonseca" <randrade(at)inteligentes(dot)com(dot)mx> |
|---|---|
| To: | "Juan Jorge" <jujoas(at)yahoo(dot)com> |
| Cc: | pgsql-es-ayuda(at)postgresql(dot)org |
| Subject: | Re: Problemas con un string en un insert |
| Date: | 2007-05-04 21:23:28 |
| Message-ID: | 36017.189.135.235.97.1178313808.squirrel@www.inteligentes.com.mx |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-es-ayuda |
Hola:
> Hola a todos, tengo un problema con una instrucción
>
> Como hago para poder insertar ese caracter dentro y
> que no lo tome como límite de string?
Revisa:
http://www.postgresql.org/docs/8.2/interactive/functions-string.html
quote_literal(string)
text
Return the given string suitably quoted to be used as a string literal in
an SQL statement string. Embedded single-quotes and backslashes are
properly doubled.
quote_literal( 'O\'Reilly')
'O''Reilly'
--
Saludos,
--
Roberto Andrade Fonseca
Director de Tecnología
Inteligentes.com, S.A. de C.V.
Tel. (55) 5207-1672 / 1673
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Esteban Osorio | 2007-05-04 21:52:50 | Mejorar performance de un query. |
| Previous Message | Juan Jorge | 2007-05-04 20:53:47 | Problemas con un string en un insert |