简体   繁体   中英

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM