Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Insert into SQL with a '
Message
 
À
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:
01670558
Vues:
45
Thanks. Params are the best way, it is quick code written years ago so I didn't use parameters at the time. I didn't know about the double '' so good to know.
~M
>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
Go raibh maith agat

~M
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform