在SQL Server中插入特殊字符 [英] insert the special charactor in sql server
本文介绍了在SQL Server中插入特殊字符的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我们如何使用c#在sql服务器中插入特殊字符
请帮助我
这将是极大的帮助
谢谢您
how we can insert the special character in sql server using c#
please help me
that will be greate help
thanks you
推荐答案
使用参数化查询!因此,您还将摆脱SQL注入问题.
Use parameterized queries! Thus you''ll also get rid of the SQL injection problems.
在传递字符串时添加转义序列.假设您要发送''"-单引号..则将其发送为"/""
请参考本网站
如何在sql server中插入特殊字符 [ ^ ]
while passing the string add the escape sequeences. suppose if you are sending "''"--single quote.. then send it like "/''"
pls refer this site
How can I insert a special character in sql server[^]
这篇关于在SQL Server中插入特殊字符的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文