如何在sqlserver 2005上插入化学反应符号 [英] how to insert chemical reaction symbols on sqlserver 2005

查看:207
本文介绍了如何在sqlserver 2005上插入化学反应符号的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何在SQL Server数据库2005中插入特殊符号(如数学上的Specil方程)

how to insert special symbols like specil equations on maths in to sqlserver database 2005

推荐答案

使用NVARCHAR.它支持unicode.
http://msdn.microsoft.com/en-us/library/ms186939.aspx [ ^ ]
Use NVARCHAR. It supports unicode.
http://msdn.microsoft.com/en-us/library/ms186939.aspx[^]


使用char函数,该函数将int作为参数
在sqlserver中运行以下脚本,您将获得所需的数字和符号
use char function which takes int as parameter
run the below script in sqlserver and you will get the requred number and symbol
declare @i int = 0
while @i <500
begin
    print convert(nvarchar,@i) + ' = ' +  CHAR(@i)
    set @i = @i +1
end


这篇关于如何在sqlserver 2005上插入化学反应符号的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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