首页 > 数据库 >C#数据类型与数据库字段类型对应

C#数据类型与数据库字段类型对应

时间:2023-02-10 03:44:05浏览次数:30  
标签:String C# 数据库 数据类型 System DateTime Byte Decimal

数据库

C#程序

int

int32

text

string

bigint

int64

binary

System.Byte[]

bit

Boolean

char

string

datetime

System.DateTime

decimal

System.Decimal

float

System.Double

image

System.Byte[]

money

System.Decimal

nchar

String

ntext

String

numeric

System.Decimal

nvarchar

String

real

System.Single

smalldatetime

System.DateTime

smallint

Int16

smallmoney

System.Decimal

timestamp

System.DateTime

tinyint

System.Byte

varbinary

System.Byte[]

varchar

String

Variant

Object

unique identifier

System.Guid

标签:String,C#,数据库,数据类型,System,DateTime,Byte,Decimal
From: https://www.cnblogs.com/kevinl/p/17107649.html

相关文章

  • Kubernetes(k8s)控制器(四):ReplicaSet
    目录一.系统环境二.前言三.ReplicaSet概览四.ReplicaSet工作原理五.ReplicaSet使用场景六.创建ReplicaSet七.扩展replicaset副本数一.系统环境服务器版本docker软件......
  • 安装pytorch踩过的坑
    failedwithinitialfrozensolve 可能是由于没有这个版本的matplotlib(包名),可以用'condasearch包名'搜索一下,进一步确认问题下载包的速度慢condacreate-n环境......
  • Codeforces Round #851 (Div. 2) 题解
    CodeforcesRound#851(Div.2)题解A.OneandTwo取\(\log_2\),变成加号,前缀和枚举\(s[i]=\dfrac{s[n]}{2}\)。B.SumofTwoNumbers对于每一位,如果是偶数则平均......
  • [Typescript] Using type predicates
     import{expect,it}from"vitest";import{Equal,Expect}from"../helpers/type-utils";exportconstvalues=["a","b",undefined,"c",undefined];c......
  • cracking the System Design tech interview All In One
    crackingtheSystemDesigntechinterviewAllInOne破解系统设计技术面试SystemDesignhttps://github.com/donnemartin/system-design-primerhttps://github.c......
  • ACP云原生容器工程师-ACK概述
    ACK简介阿里云容器服务ACK,是阿里云针对云原生推出的拳头产品,基于原版Kubernetes进行适配和增强,简化集群的搭建和运维工作,整合阿里云虚拟化、存储、网络和安全能力,使得扩容......
  • CMakelearn
     MESSAGE关键字:向终端输出用户自定义的信息主要包含三种信息:SEND_ERROR产生错误,生成过程被跳过STATUS输出前缀为--的信息FATAL_ERROR立即终止所有的cmake过程......
  • malloc、calloc和realloc的区别
    1.malloc函数使用方法:参数是所需申请的内存块的字节数,返回指向申请的内存块的首地址的无类型指针,malloc申请的内存块是未初始化的。函数原型:void*malloc(size_tnum_s......
  • chatGPT对未来五年测试行业的看法
    chatGPT回答未来五年我们测试发展的方向问题:未来五年测试行业发展怎么样回答如下:预测未来五年测试行业的发展趋势是有困难的,但是一般认为,测试行业将继续发展,因为软件行......
  • Codeforces Round #717 (Div. 2)
    D:连续区间内lcm=积也就是gcd=1所以可以分解质因子对每个数先找到它后面离他最近的有相同质因子的数的位置用桶更新然后考虑怎么快速弄出整个区间因为划分是固......