使用asp.net将子/超级脚本插入到SQL Server [英] insert sub/super script to sql server with asp.net

查看:67
本文介绍了使用asp.net将子/超级脚本插入到SQL Server的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想从Excel文件中将带有以下子/上标的数据导入:H 2 O或m 2 到sql server,但是我不能.请帮我.非常感谢.可以将Excel数据转换为html代码并将html代码插入sql server吗?

[edit]添加了上标-OriginalGriff [/edit]

I want to import data from excel file with sub/superscript like: H2O or m2 to sql server but I can''t. Please help me. Thanks a lot. Can you convert excel data into html code and insert html code to sql server?

[edit]Superscripts added - OriginalGriff[/edit]

推荐答案

您无法在普通的varchar字段中存储文本修饰,我认为您需要使用格式标记.考虑将富文本格式存储在数据库中,尝试使用 google foo [ ^ ]这里有很多文章!
You can''t store text decoration in a normal varchar field I think you need to use the formatting tags. Look into storing rich text in a database try this google foo[^] there are a number of articles here!


这篇关于使用asp.net将子/超级脚本插入到SQL Server的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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