pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Shavonne Marietta Wijesinghe <shavonne.marietta@studioform.it>
To: pgsql-sql@postgresql.org
Subject: Fw: INSERT INTO
Date: Fri, 16 Mar 2007 10:26:53 +0100
Message-ID: <005b01c767ad$3c625970$1102a8c0@dream> (raw)

thanks.. i will take a look at the link

Shavonne Wijesinghe
http://www.studioform.it


Le informazioni contenute nella presente comunicazione e i relativi allegati 
possono essere riservate e sono, comunque destinate esclusivamente alle 
persone o alla Società sopra indicati.
La diffusione, distribuzione e/o copiature del documento trasmesso da parte 
di qualsiasi soggetto diverso dal destinatario è proibita, sia ai sensi dell'art. 
616 c.p., che ai sensi del D. Lgs. n. 196/2003.

Se avete ricevuto questo messaggio per errore, Vi preghiamo di distruggerlo 
e di informarci immediatamente per telefono allo 0039362595044 o inviando un 
messaggio all'indirizzo e-mail
amministrazione@studioform.it

The informations in this communication is confidential and may also be 
legally privileged. It is intended for the addressee only.
Access to this e-mail by anyone else is unauthorized. It is not to be relied 
upon by any person other than the addressee, except with our prior written 
approval. If you received this message please send an e-mail to the se
----- Original Message ----- 
From: "Guillaume Lelarge" <guillaume@lelarge.info>
To: "Bart Degryse" <Bart.Degryse@indicator.be>
Cc: <pgsql-sql@postgresql.org>; "Shavonne Marietta Wijesinghe" 
<shavonne.marietta@studioform.it>
Sent: Friday, March 16, 2007 10:16 AM
Subject: Re: [SQL] INSERT INTO


> Bart Degryse a ecrit le 16/03/2007 10:03:
>> I don't use ASP but in PHP I would do something in the line of
>>  $valuetoinsert = "SANT'ANGELO LODIGIANO";
>> $query = "INSERT INTO TABLE2 (TE_INDI) VALUES ('" . str_replace("'", 
>> "''", $valuetoinsert) . "')";
>>  I'm sure ASP has also a string replacement function
>>
>
> This doesn't answer Shavonne's question but, instead of str_replace, you 
> should better use pg_escape_string :
>   http://www.php.net/manual/en/function.pg-escape-string.php
>
> Regards.
>
>
> -- 
> Guillaume. 




view thread (13+ messages)  latest in thread

Message-ID: <005b01c767ad$3c625970$1102a8c0@dream>
Permalink:  ../005b01c767ad$3c625970$1102a8c0@dream/
Also on:    postgresql.org/message-id/005b01c767ad$3c625970$1102a8c0@dream

 · 

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: shavonne.marietta@studioform.it
  Subject: Re: Fw: INSERT INTO
  In-Reply-To: <005b01c767ad$3c625970$1102a8c0@dream>

* 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