Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Problem of inserting ' (single quote)
Message
 
À
18/02/2002 02:40:30
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Divers
Thread ID:
00621446
Message ID:
00621487
Vues:
28
Inserting into a database? Double it. For example from VB, we use this syntax (but I don't think that Replace exists in VBScript):

strX = "O'Neil"
SQL = "SELECT * FROM Table1 WHERE LastName = '" & replace(strx,"'","''") & "'"


>I am using VB script as server script and facing problem of insertion a text containing single quote.
>
>I would appriciate if some could help me
>
>Shahid
>Web developer
Éric Moreau, MCPD, Visual Developer - Visual Basic MVP
Conseiller Principal / Senior Consultant
Moer inc.
http://www.emoreau.com
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform