> When i have a string that has a ' inside of it the record is not inserted in > to TABLE2. I know > that writing it twice will fix it but how can i ask my ASP code to do it.. > > INSERT INTO TABLE2 (TE_INDI) VALUES ('SANT'ANGELO LODIGIANO');
If you are using PostgreSQL >= 8.0 you can use dollars sign quoting like the following: INSERT INTO TABLE2 (TE_INDI) VALUES ($SANT'ANGELO LODIGIANO$); or even a custom quotation identifier: INSERT INTO TABLE2 (TE_INDI) VALUES ($myquote$SANT'ANGELO LODIGIANO$myquote$); Would this work in ASP? Regards, Richard Broersma Jr. ---------------------------(end of broadcast)--------------------------- TIP 2: Don't 'kill -9' the postmaster