我们可以在sqlserver2008中选择哪种数据类型作为Cost [英] which datatype we can choose for Cost in sqlserver2008

查看:214
本文介绍了我们可以在sqlserver2008中选择哪种数据类型作为Cost的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

我在此表中有一个名为tbl_ClientProducts的表,我有8列,其中一列名为ProductCost,我们为ProductCost选择了哪种数据类型.在我的Onlineshopping项目中,我需要比较ProductCost值并根据productcost分配图像.请寄给我.

谢谢.

Hi all,

I have table called tbl_ClientProducts in this table i have 8 columns, one column name is ProductCost which datatype we select for ProductCost. In my Onlineshopping project i have requirement to compare ProductCost values and dispaly images based on the productcost. Please send me.

Thankyou.

推荐答案

基于列名"ProductCost",它看起来像一个与金额相关的字段.

使用:Money数据类型.
此处: MSDN:金钱和小钱(Transact-SQL) [
Based on the column name ''ProductCost'' it looks like a field related to amount.

Use: Money datatype.
Here: MSDN: money and smallmoney (Transact-SQL)[^]


这篇关于我们可以在sqlserver2008中选择哪种数据类型作为Cost的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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