Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Insert into SQL with a '
Message
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Titre:
Insert into SQL with a '
Divers
Thread ID:
01670208
Message ID:
01670208
Vues:
76
hi all,
I'm trying to insert (and update) into an SQL Server table but I get an error when a name contains a ' e.g. Michael O'Reilly
The code in summary is below, I've also tried variations of &lcName, (lcName) etc. but no joy
lcSQLcommand = "INSERT into Contacts (" + ;
			"Contact_Name " + ;
			")" + ;
		"Values (" + ;
			" '" + lcName + "'" + ;
			")"

SQLEXEC(lnSQLHandler, lcSQLcommand)
~M
Go raibh maith agat

~M
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform