Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Insert into SQL with a '
Message
De
22/08/2019 10:14:36
Joe Kaufman
Bell Laboratories Inc.
Wisconsin, États-Unis
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
01670208
Message ID:
01670244
Vues:
77
As the others have indicated, parameters are the way to go.

In a pinch, though, you can simply double-up the single quotes to tell SQL Server to accept it as a single quote. See this thread for more:

https://stackoverflow.com/questions/1912095/how-to-insert-a-value-that-contains-an-apostrophe-single-quote

Thanks,
JoeK
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform