近期.NET学习及项目开发整理-SQLSERVER中的数据类型和C#中数据类
一般的 对应 关系 bool -> System.Bollean (布尔型,值为 true 或 false) char -> System.Char (字符型,占有两个字节,表示 1 个 unicode 字符) byte -> System.Byte (字节型,占1字节,表示 8 位正整数,范围 0~255) sbyte -> System.Sbyte (带符号字节型
一般的对应关系
bool -> System.Bollean (布尔型,值为 true 或 false)
char -> System.Char (字符型,占有两个字节,表示 1 个 unicode 字符)
byte -> System.Byte (字节型,占1字节,表示 8 位正整数,范围 0~255)
sbyte -> System.Sbyte (带符号字节型,占1字节,表示 8 位整数,范围 -128~127)
ushort -> System.Uint16 (无符号短整型,占 2 字节,表示 16 位正整数,范围 0~65,535)
unit -> System.Uint32 (无符号整型,占 4 字节,表示 32 位正整数,范围?? 0~4,294,967,295)
ulong -> System.Uint64 (无符号整型,占 8 字节,表示 64 位正整数,范围 0~ 大约 10 的 20 次)
short -> System.Int16 (短整型,占 2 字节,表示 16 位整数,范围 -32,768 ~ 32767)
int -> System.Int32 (整型,占 4 字节,表示 32 位整数,范围-2,147,483,649 到2,147,483,467)
long -> System.Int64 (长整型,占 8 字节,表示 64 位整数,范围大约-(10 的 19)次方到 10 的 19 次方)
float -> System.Sigle (单精度浮点型,占 4 个字节)
double -> System.Double (双精度浮点型,占8个字节)
?
candh用这个tinyint类型 表示0-255 之间的数字? (用于存放像状态字段类似的东西的时候用)
zp_status状态 用这个tinyint类型 表示0-255 之间的数字? 对应 C#中的BYTE类型
?
bigint
-2^63 (-9,223,372,036,854,775,808) 到 2^63-1 (9,223,372,036,854,775,807)
8 字节
int
-2^31 (-2,147,483,648) 到 2^31-1 (2,147,483,647)
4 字节
smallint
-2^15 (-32,768) 到 2^15-1 (32,767)
2 字节
tinyint
0 到 255
1 字节
?
single 就是FLOAT 类型

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

Video Face Swap
Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Article

Hot Tools

Notepad++7.3.1
Easy-to-use and free code editor

SublimeText3 Chinese version
Chinese version, very easy to use

Zend Studio 13.0.1
Powerful PHP integrated development environment

Dreamweaver CS6
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

Hot Topics











Learn Pygame from scratch: complete installation and configuration tutorial, specific code examples required Introduction: Pygame is an open source game development library developed using the Python programming language. It provides a wealth of functions and tools, allowing developers to easily create a variety of type of game. This article will help you learn Pygame from scratch, and provide a complete installation and configuration tutorial, as well as specific code examples to get you started quickly. Part One: Installing Python and Pygame First, make sure you have

The Charm of Learning C Language: Unlocking the Potential of Programmers With the continuous development of technology, computer programming has become a field that has attracted much attention. Among many programming languages, C language has always been loved by programmers. Its simplicity, efficiency and wide application make learning C language the first step for many people to enter the field of programming. This article will discuss the charm of learning C language and how to unlock the potential of programmers by learning C language. First of all, the charm of learning C language lies in its simplicity. Compared with other programming languages, C language

The development of artificial intelligence (AI) technologies is in full swing today, and they have shown great potential and influence in various fields. Today Dayao will share with you 4 .NET open source AI model LLM related project frameworks, hoping to provide you with some reference. https://github.com/YSGStudyHards/DotNetGuide/blob/main/docs/DotNet/DotNetProjectPicks.mdSemanticKernelSemanticKernel is an open source software development kit (SDK) designed to integrate large language models (LLM) such as OpenAI, Azure

When editing text content in Word, you sometimes need to enter formula symbols. Some guys don’t know how to input the root number in Word, so Xiaomian asked me to share with my friends a tutorial on how to input the root number in Word. Hope it helps my friends. First, open the Word software on your computer, then open the file you want to edit, and move the cursor to the location where you need to insert the root sign, refer to the picture example below. 2. Select [Insert], and then select [Formula] in the symbol. As shown in the red circle in the picture below: 3. Then select [Insert New Formula] below. As shown in the red circle in the picture below: 4. Select [Radical Formula], and then select the appropriate root sign. As shown in the red circle in the picture below:

Title: Learn the main function in Go language from scratch. As a simple and efficient programming language, Go language is favored by developers. In the Go language, the main function is an entry function, and every Go program must contain the main function as the entry point of the program. This article will introduce how to learn the main function in Go language from scratch and provide specific code examples. 1. First, we need to install the Go language development environment. You can go to the official website (https://golang.org

1. This lesson mainly explains [1: Alignment Principle]. First, it will be analyzed from daily life, such as buildings, historical sites, etc. 2. [The role of alignment]: Highlight the content relationship and unify the page vision. 3. This lesson starts from [Analysis of actual cases] [Step 1: Delete excessive and inappropriate beautification and special effects; Step 2: Unify fonts and colors]. 4. First change the [Font to Microsoft YaHei] and then [Change the color of the page] to typeset as shown in the picture. 5. Then go to [Drawing of Timeline], insert [Straight Line - Modify Thickness, Color] and then continue to insert [Ring - Close Fill, Turn on Black Stroke] and then [Copy - Reduce Fill Black] [Select Two to Align 】Create a 'button effect' and then type it, the effect is as shown in the figure

Original author: Minty, encryption KOL Original compilation: Shenchao TechFlow If you know how to use it, Dune is an all-in-one alpha tool. Take your research to the next level with these 20 Dune dashboards. 1. TopHolder Analysis This simple tool developed by @dcfpascal can analyze tokens based on indicators such as holders’ monthly activity, number of unique holders, and wallet profit and loss ratio. Visit link: https://dune.com/dcfpascal/token-holders2. Token Overview Metrics @andrewhong5297 created this dashboard which provides a way to evaluate tokens by analyzing user actions

In the process of learning C language, it is very important to understand the basic units of C language. The basic units of C language include characters, integers, floating point numbers and pointers. In this article, we will explain the concepts of these basic units in detail and provide specific code examples to help readers better understand and master the basics of C language. Character (char) In C language, character (char) is one of the most basic data types, used to store single characters. In C language, characters are represented by single quotes, such as 'a', 'b', '1', etc.
