Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to query a text field having a single quotation mark
Message
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Syntaxe SQL
Titre:
How to query a text field having a single quotation mark
Divers
Thread ID:
01141732
Message ID:
01141732
Vues:
59
Hi All
I have one text field and the user has enetered single quotation in the data, and in the query it gives error.
I want to know 2 things
1) select statement to find out those records where there is single quotation mark in the text field.
2)How to prevent the error of the query, even if the data enetered has single quote marks


Thanks

Regards
Riyaz Patanwala
I. T. Programmer
Al Jaber Energy Services L.L.C.
P.O.Box 47467
Abu Dhabi, U.A.E.
Tel - +971 2-502-1644
Fax - +971 2-554-6106
Cell - +971 50 358-0229
Email - riyaz.patanwala@ajes.ae
Website - www.ajes.ae
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform