[英]SQl Server insert Special characters
您好即时通讯试图插入's
在SQL服务器,我有上搜索解决方案来替换's
到''s
,然后将其插入是有效的解决办法,或给我其他的解决办法
if you are going to insert values with single quote '
, you have to escape it through single quote. 如果要使用单引号
'
插入值,则必须通过单引号将其转义。 So what you are doing is right. 所以你在做什么是对的。
You may see this article: SQL SERVER – How to Escape Single Quotes 您可能会看到本文: SQL SERVER –如何转义单引号
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.