如何在SQL中将smallint转换为十进制类型 [英] How to convert smallint to decimal type in sql

查看:251
本文介绍了如何在SQL中将smallint转换为十进制类型的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在sql中将数据类型smallint转换为十进制.

i want to convert data type smallint to decimal in sql.

推荐答案

http://msdn.microsoft.com/en-us/library/ms187928.aspx [
http://msdn.microsoft.com/en-us/library/ms187928.aspx[^]
Not very difficult when you actually look for information


convert(decimal,@myTinyIntValue)


这篇关于如何在SQL中将smallint转换为十进制类型的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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