双引号问题 [英] Double quotes issue

查看:80
本文介绍了双引号问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好


我有一些数据字符串,如〜!@#%''^&(*("} [; asd">包含double

引用然后更大然后签名,首先我需要将此值插入

数据库,第二个插入的值我已经在文本框中显示了

从数据库中恢复,因为它在字符串值的末尾有>

被丢弃。如果你们有人工作或知道如何解决这个问题

请帮助我。


先谢谢。

- Azeem。

Hi All

I have some data string like ~!@#$%''^&(*("}[;asd"> which contains double
quote and greater then sign, first I need to insert this value into
database, second this inserted value I have display in a textbox by
retriving from database, as it has "> at end of the string values are
getting discarded. if any of you have worked or know how to solve this issue
pls help me.

Thanks in Advance.
- Azeem.

推荐答案

%''^&(*("} [; asd">其中包含double

引用然后大于符号,首先我需要将此值插入

数据库,第二个这个插入的值我已经在文本框中显示了

从数据库中恢复,因为它在字符串值的末尾有>

被丢弃。如果你们有人工作或知道如何解决这个问题起诉

请帮帮我。


先谢谢。

- Azeem。

%''^&(*("}[;asd"> which contains double
quote and greater then sign, first I need to insert this value into
database, second this inserted value I have display in a textbox by
retriving from database, as it has "> at end of the string values are
getting discarded. if any of you have worked or know how to solve this issue
pls help me.

Thanks in Advance.
- Azeem.


Abdul Azeem< ab ******** @ abc.com>写道:
Abdul Azeem <ab********@abc.com> wrote:
我有一些数据字符串,如〜!@#
I have some data string like ~!@#

%''^&(*("} [; asd">]包含双引号和更大的符号,首先我需要将此值插入
数据库,第二个插入的值我已经在文本框中显示,通过从数据库中恢复,因为它具有 >在字符串值的末尾被丢弃。如果你们有人工作或者知道如何解决这个问题请帮助我。
%''^&(*("}[;asd"> which contains double
quote and greater then sign, first I need to insert this value into
database, second this inserted value I have display in a textbox by
retriving from database, as it has "> at end of the string values are
getting discarded. if any of you have worked or know how to solve this issue
pls help me.




使用参数化的SQL语句,而不是尝试将

字面值插入SQL中。这也具有安全性(没有SQL

注入攻击)和潜在的性能好处取决于

数据库。


-

Jon Skeet - < sk *** @ pobox.com>
http://www.pobox.com/~skeet

如果回复该组,请d o也不要给我发邮件



Use a parameterised SQL statement rather than trying to insert the
literal value into the SQL. This also has security benefits (no SQL
injection attacks) and potential performance benefits depending on the
database.

--
Jon Skeet - <sk***@pobox.com>
http://www.pobox.com/~skeet
If replying to the group, please do not mail me too


这篇关于双引号问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆