如何使用c#将文本区域值添加到sql数据库中 [英] how to add text area values into sql database using c#
本文介绍了如何使用c#将文本区域值添加到sql数据库中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
String selQuery = "INSERT INTO MapDataImage" + "(USer_Comment)" + "VALUES" + Commentary.Value + "WHERE Source='" + TextBox1.Text + "' AND Destination='" + TextBox2.Text + "'";
i希望在sql数据库上存储用户评论..
所以
i二手文字区
文字区名是=评论
所以sql查询检查用户输入文本框值是否与数据库值匹配
然后我wa对我的SQL的评论
User_Comment字段
i want to store user comment on sql data base..
so for that
i used text area
text area name is = Commentary
so sql query checks if user input textbox value match with database values
and then i want to comments to my SQL
User_Comment Field
推荐答案
你可以使用一个文本框,其属性设置为Textmode = Multiline
请参阅此链接以获取文档:
http://msdn.microsoft.com/pt-br/library/68cs6zxh(v = vs.100).aspx [ ^ ]
you can use a textbox with the property set Textmode=Multiline
see this link for documentation:
http://msdn.microsoft.com/pt-br/library/68cs6zxh(v=vs.100).aspx[^]
这篇关于如何使用c#将文本区域值添加到sql数据库中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文