, non-Unicode string n = 1 ~ 8000
Char varying (N)
Text
Variable-length non-Unicode data in the server code page. The maximum length is 23-1 Characters
Nchar
Unicode string of fixed length n = 1 ~ 4000
National Character (N ),
National char (N)
Nvarchar
Unicode string of fixed length n = 1 ~ 4000
National Character varying (N)
Ntext
Unicode data with a variable length. The maximum length is-1 characters.
National text
Binary (N)
Binary data of fixed l
: integer data from-2 ^ 31 (-2,147,483,648) to 2 ^ 31-1 (2,147,483,647.Smallint: integer data from-2 ^ 15 (-32,768) to 2 ^ 15-1 (32,767.Tinyint: integer data from 0 to 255.Bit: an integer of 1 or 0.(4) decimal and numericThe two data types are equivalent. There are two parameters: p (precision) and s (number of decimal places ). P specifies the maximum number of decimal digits that can be stored on the left and right of the decimal point. p must be a
data from 0 to 255.
Bit:1 or 0 of integer data.
(4) Decimal and numeric
The two types of data are equivalent. have two parameters: P (Precision) and S (scale). p Specifies the maximum number of decimal digits that can be stored to the left and right of the decimal point, and P must be a value from 1 to 38. s specifies the maximum number of decimal digits that can be stored to the right of the decimal point, and S must be a value between 0 and P, a
4 889 user4# Gets the foreign key but does not sort; Lets sort skip the sort operation by passing a non-existent key as a parameter to the by option(Sort uid by user_nick_* get # get user_level_* get user_name_*)# use hash tables as parameters for by and get(Hmset user_info_1 name U1 age 9)(Hmset user_info_2 name U2 age 7)(Hmset user_info_3 name U3 age Level 8)(Hmset user_info_4 name U4 age level 6)(Sort uid by User_info_*->level) # 4 2 3 1(Sort uid by User_info_*->level get User_info_*->name)
, from -3.40E+38 to 3.40E+38
17rowversion database-wide unique number
18smalldatetime date and time data, from January 1, 1900 to June 6, 2079
19smallint integer data from -2^15 to 2^15-1
20smallmoney monetary data value, between -214,748.3648 and +214,748.3647
21sql_variant can store data types for values of a variety of SQL Server-supported data types.
22 witho
Tags: ima timestamp mon XML Hiera blog AC Div class
SQL Server data Types
Oracle data Types
bigint
Number (19,0)
Binary (1-2000)
RAW (1-2000)
Binary (2001-8000)
Blob
Bit
Number (1)
char (1-2000)
CHAR (1-2000)
char (2001-
A few days ago wrote a detection site server type gadget, with this gadget is mainly to obtain some server information, and no malicious.The gadget is based on the command line run mode, the program runs only need a Web site URL as parameters.
First you can click on the small icon on the right to download this gadget.By double-clicking Open this program, you can see the URL that prompts the user to enter
The access and SQL server data types are different. These types are useful when you use scripts to define data.
Microsoft Access Data Type
SQL Server Data Type
Yes/No
Bit
Smallint (byte type)
Tinyint
Integer (long Integer)
Int
Real (single precision floating poi
Several types of data commonly used in SQL Server:
Binary
Fixed-length binary data with a maximum length of 8,000 bytes.
varbinary
Variable-length binary data with a maximum length of 8,000 bytes.
Image
Variable-length binary data with a maximum length of 2g+-1 (2,147,483,647) bytes
Text
The maximum length of variable-length non-Unicode data in the server
Tags: The difference contains synchronous occurrences of blog writes. com eager wwwSource: IO-related wait types in SQL Server: Io_completion and pageiolatch_*A large SQL statement operation, the execution plan contains a merge join operation, observed that SQL long time in the io_completion wait state, if it is to read the related table data, the server should d
Comparison of paging stored procedures and performance of five types of SQL Server, SQL stored procedures
In SQL Server database operations, we often use stored procedures to implement paging processing of the queried data to facilitate browsing by viewers. This article summarizes the five paging stored procedures for SQL Ser
1. Type comparison
Bigint: integer data from-2 ^ 63 (-9223372036854775808) to 2 ^ 63-1 (9223372036854775807). The storage size is 8 bytes. One byte is 8 bits, so bigint has 64 bits
INT: integer data from-2 ^ 31 (-2,147,483,648) to 2 ^ 31-1 (2,147,483,647). The storage size is 4 bytes. Int type, which can store up to 32 bits of data
Smallint: integer data from-2 ^ 15 (-32,768) to 2 ^ 15-1 (32,767). The storage size is 2 bytes. Smallint has 16 digits.
Tinyint: integer data from 0 to 255. The s
other value will default to 1, cannot be defined as null.does not contain boolViii. type of currencyMoney ———— The type of stored number, which is a decimal value with four decimal places, 8 bytes, preceded by a currency symbol to differentiate the country, otherwise the default ¥SmallMoney ———— Storage Currency range is smallIx. type of textThe text ———— is used to store large text data of variable length, which can store 2GBX. Image data TypeImage ———— in the database, to save the picture, tr
Differences between varchar and nvarchar:
Varchar (N)Variable-length and non-UNICODE character data with a length of n Bytes. N must be a value between 1 and 8,000. The storage size is the actual length of the input data bytes, rather than n Bytes (such as varchar (6). When the field is qqq, the actual space occupied by the database is 3 bytes, instead of 6 bytes, it can only store 6 bytes. Generally, Chinese occupies two bytes ).
Nvarchar (N)Unicode data with a variable length of n characters.
First, the cluster type:1. Load Balancer Cluster (LB cluster--load balancing):Considering the increase of server capacity is the main technology for scalability expansion.Consider an extension when the following scenario occurs for concurrent requests:1200 request: 1s1500 Request: 2s1800 Request: 10sExtension Type:Scale up: upward, requiring more powerful servers, the downside is that the upper limit is limited and its cost-effective.Scale out: More t
Tags: style blog http color using AR strong data SPWe know that the datetime type in this SQL Server database is a data type that is often used in database application development, and the C # language also has a DateTime type, although both are used to describe time, but their default values are different, which must be noted in the development process , it is a waste of time to deal with the relationship between the two, which may cause unnecessary
In SQL Server, when we set character fields, there are often many data types for us to choose from, such as char nchar varchar nvarchar. Which one should we choose? The differences are described one by one.
Char:Fixed Length, non-Unicode character data, length is n Bytes. The value range of n is 1 to 8,000, and the storage size is n Bytes. The synonym for SQL2003 of char is character.
Varchar:Variable Lengt
Common Data Types in SQL Server:
BinaryA fixed-length binary data with a maximum length of 8,000 bytes.
VarbinaryA variable-length binary data with a maximum length of 8,000 bytes.
ImageA variable-length binary data with a maximum length of 2G +-1 (2,147,483,647) bytes
TextServerCodeThe maximum length of non-Unicode data in the Variable Length page is 2G + (2,147,483,647) characters. When the
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.