如何插入和反演数学和化学等式 [英] how to insert and retrive mathematical and chemical eqution

查看:69
本文介绍了如何插入和反演数学和化学等式的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在Asp.net设计网站,用于所有学科的在线测试系列,如数学,物理,化学等。我在存储数学方程时存在问题,其中包括有机化学结构公式中的特殊符号等。如何将它存储在sql server 2005数据库中。存储之后我想在asp.net网页上进行检索。

I am designing website in Asp.net for online test series for all subject like mathematics, physics, chemistry, . I have a problem in storing mathematical equation which includes special symbols an in organic chemistry structural formulas etc.How can we store it in sql server 2005 database . after storing it i want to retrive it on asp.net web page.

推荐答案

你需要确保存储这些科学记数的列是UNICODE启用(例如,如果您要存储为字符数据,则可能正在使用VARCHAR。



请改用NVARCHAR)。但请注意,以UNICODE格式存储具有不同的存储要求和其他含义。



请阅读相关的联机书籍文档了解详情(适用于NVARCHAR:http://msdn.microsoft.com/en-us/library/ms186939.aspx) 。此外,如果您决定开始使用启用UNICODE的数据类型,则可能需要对调用代码(您的ASP.NET网页)进行必要的更改以处理UNICODE数据。
you would need to ensure that the columns to which you are storing these scientific notations are UNICODE enabled (e.g. if you are storing as character data, you may be using VARCHAR.

Use NVARCHAR instead). However, please note that storing in UNICODE format has different storage requiements and other implications.

Please read the associated Books On Line documentation for details (for NVARCHAR: http://msdn.microsoft.com/en-us/library/ms186939.aspx). Also, if you decide to start using UNICODE enabled data-types, necessary changes may be required to the calling code (your ASP.NET webpage) to process UNICODE data.


使用 NVARCHAR 用于将公式存储到数据库中的数据类型。



问候..
Use NVARCHAR datatype for storing your formula into Database.

Regards..


这篇关于如何插入和反演数学和化学等式的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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