
数据库中的money类型,在C#中是什么类型?
6个回答
推荐于2017-09-29

2023-08-15 广告
通常情况下,我们会按照结构模型把系统产生的数据分为三种类型:结构化数据、半结构化数据和非结构化数据。结构化数据,即行数据,是存储在数据库里,可以用二维表结构来逻辑表达实现的数据。最常见的就是数字数据和文本数据,它们可以某种标准格式存在于文件...
点击进入详情页
本回答由光点科技提供
展开全部
Decimal
高精度十进制数表示法,通常用在财务计算中
高精度十进制数表示法,通常用在财务计算中
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
展开全部
sqlserver与c#中数据类型的对应关系
///
private string changetocsharptype(string type)
{
string reval=string.empty;
switch(type.tolower())
{
case "int ":
reval= "int32 ";
break;
case "text ":
reval= "string ";
break;
case "bigint ":
reval= "int64 ";
break;
case "binary ":
reval= "system.byte[] ";
break;
case "bit ":
reval= "boolean ";
break;
case "char ":
reval= "string ";
break;
case "datetime ":
reval= "system.datetime ";
break;
case "decimal ":
reval= "system.decimal ";
break;
case "float ":
reval= "system.double ";
break;
case "image ":
reval= "system.byte[] ";
break;
case "money ":
reval= "system.decimal ";
break;
case "nchar ":
reval= "string ";
break;
case "ntext ":
reval= "string ";
break;
case "numeric ":
reval= "system.decimal ";
break;
case "nvarchar ":
reval= "string ";
break;
case "real ":
reval= "system.single ";
break;
case "smalldatetime ":
reval= "system.datetime ";
break;
case "smallint ":
reval= "int16 ";
break;
case "smallmoney ":
reval= "system.decimal ";
break;
case "timestamp ":
reval= "system.datetime ";
break;
case "tinyint ":
reval= "system.byte ";
break;
case "uniqueidentifier ":
reval= "system.guid ";
break;
case "varbinary ":
reval= "system.byte[] ";
break;
case "varchar ":
reval= "string ";
break;
case "variant ":
reval= "object ";
break;
default:
reval= "string ";
break;
}
return reval;
}
希望我的回答对你有帮助
///
private string changetocsharptype(string type)
{
string reval=string.empty;
switch(type.tolower())
{
case "int ":
reval= "int32 ";
break;
case "text ":
reval= "string ";
break;
case "bigint ":
reval= "int64 ";
break;
case "binary ":
reval= "system.byte[] ";
break;
case "bit ":
reval= "boolean ";
break;
case "char ":
reval= "string ";
break;
case "datetime ":
reval= "system.datetime ";
break;
case "decimal ":
reval= "system.decimal ";
break;
case "float ":
reval= "system.double ";
break;
case "image ":
reval= "system.byte[] ";
break;
case "money ":
reval= "system.decimal ";
break;
case "nchar ":
reval= "string ";
break;
case "ntext ":
reval= "string ";
break;
case "numeric ":
reval= "system.decimal ";
break;
case "nvarchar ":
reval= "string ";
break;
case "real ":
reval= "system.single ";
break;
case "smalldatetime ":
reval= "system.datetime ";
break;
case "smallint ":
reval= "int16 ";
break;
case "smallmoney ":
reval= "system.decimal ";
break;
case "timestamp ":
reval= "system.datetime ";
break;
case "tinyint ":
reval= "system.byte ";
break;
case "uniqueidentifier ":
reval= "system.guid ";
break;
case "varbinary ":
reval= "system.byte[] ";
break;
case "varchar ":
reval= "string ";
break;
case "variant ":
reval= "object ";
break;
default:
reval= "string ";
break;
}
return reval;
}
希望我的回答对你有帮助
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
展开全部
decimal 类型
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
展开全部
decimal
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询