如何在将数据插入SQL表时删除特殊字符 [英] How can I remove the special charecters while inserting the data to SQL table
本文介绍了如何在将数据插入SQL表时删除特殊字符的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在尝试将名称插入其中一列,coulumn的数据就像RICHARD O'NEILL,当我尝试插入数据时,它将作为RICHARD ONEILL插入。请帮我解释如何插入记录为RICHARD O'NEILL
I am trying to insert the name to one of the column the data of the coulumn is like RICHARD O'NEILL, when I try to insert the data it is getting inserted as RICHARD O"NEILL. Please help me out how to insert the record as RICHARD O'NEILL
推荐答案
使用参数化的INSERT语句。
Use a parameterized INSERT statement.
这篇关于如何在将数据插入SQL表时删除特殊字符的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文