Label:Mapping from a JDBC type to a Java type
JDBC Type
Java Type
CHAR
String
VARCHAR
String
LONGVARCHAR
String
NUMERIC
java.math.BigDecimal
DECIMAL
java
You see this article from HTTP://WWW.CNBLOGS.COM/AYANMWReprinted from: http://blog.csdn.net/daydreamingboy/article/details/6310907Analyze the length of the MySQL data typeMySQL has several data types that can limit the "length" of a type, with char (length), VARCHAR (length), TINYINT (length), SMALLINT (length), mediumint (length), INT ( Length), BIGINT (length),
-point operation may have rounding errors.Common methods for type int>>> Help (int)Methods defined here:__abs__ (self,/)--Take absolute valueABS (self)-->>> age=-18>>> age.__abs__ ()18>>> ABS (age)-perform built-in functions abs () is actually called the int.__abs__ method18Bit_length (...)Int.bit_length () int--Get the length of the int store>>> Bin (37)' 0b100101 '>>> (PNS). Bit_length ()6__divmod__ (self, value,/)--seeking quotient and remainderRet
type stores all positive integers from 0 to 255. Each tinyint type of data consumes 1 bytes of storage space.4, BIGINTThe BIGINT data type stores all positive and negative integers from -2^63 (-9, 223, 372, 036, 854, 775, 807) to 2^63-1 (9, 223, 372, 036, 854, 775, 807). Ea
Label:The following table lists the default mappings between the basic SQL Server, JDBC, and Java programming language data types:
SQL Server Type
JDBC Type (java.sql.Types)
Java Language Types
bigint
BIGINT
Long
TimestampBinary
BINARY
Byte[]
Bit
BIT
Boolean
SQL Server Type
JDBC Type (java.sql.Types)
Java Language Types
bigint
BIGINT
Long
TimestampBinary
BINARY
Byte[]
Bit
BIT
Boolean
Char
CHAR
String
DecimalMoneySmallMoney
DECIMAL
Java.math.BigDecimal
Float
DOUBLE
D
(1) Integer typeintegers include bigint, int, smallint, and tinyint, which can be seen from the meaning of identifiers, and their range of representations is gradually shrinking.L bigint: Large integer, number range is-263 (-9223372036854775808) ~263-1 (9223372036854775807), with a precision of 19, a scale of 0, and a length of 8 bytes.L int: integer, number range is-231 (-2,147,483,648) ~231-1 (2,147,483,647), its precision is 10, the number of decimal
Data type1.OBJECTIVE-C data types can be categorized as: Basic data types, object data types, and ID types.2. The basic data types are: int, float, double, and char type.3. The object type
Front-end PHP variables, data types and scopes, PHP data types
Directory[1] variable variable definition variable assignment [2] data type string integer floating-point Boolean Array Object NULL resource [3] scope global static
Variable
Variable definition
A variable is a container for storing information, beginning w
1. Integral type
MySQL data type
Meaning (Signed)
tinyint (m)
1 byte range ( -128~127)
smallint (m)
2 byte range ( -32768~32767)
Mediumint (M)
3 byte range ( -8388608~8388607)
Int (m)
4 byte range ( -2147483648~2147483647)
BigInt (M)
8 byte Range (18 +-9.22*10 of the
ArticleDirectory
Int type
Float, double, and decimal types
Char and varchar types
Text and blob types
Date, time, and tear types
Dateyime and timestamp types
Enum type
Set Type
Value Type
MySQL numeric
is relatively safe and does not accept embedding of malicious script contentint integral typeThe int data type can store integers from 2 to 31 powers (-2147483648) to 2 to 31 powers (2147483 647). Almost all numeric data stored in a database can be used with this data type.
Mysql Data Type
I. Numerical type
Mysql supports all numeric types in standard SQL, including strict data types (INTEGER, SMALLINT, DECIMAL, NUMBERIC), and approximate numeric data types (FLOAT, REAL, DOUBLE PRESISION ), in additi
INT
8-byte BIGINT type
[Attributes can be added: UNSIGNED]
Float (decimal ):
FLOAT (M, N) 4-byte [length M, retain N digits after the decimal point]
DOUBLE (M, N) 8 bytes
DECIMAL (M, N) M + 2 bytes [number of points, data is stored in the form of strings, more accurate
participates in an operation or expression:Error: Reference error3. Data type: 2 major categories:The first large type: the value of the original type is stored directly in the variable local data type"5": number String Boolean u
value of "M:" +m);The following table lists most of the data types, in fact, the data type is not limited to the four class eight, there are many, we understand the function functions, including a lot of methods can be seen as a kind of data, and then can operate on it, learning is still too little
Byte
Next, I will provide a summary of mysql Data Types, that is, field types, including type descriptions and string lengths of different data types. I will introduce them below.
I. numeric type
Storage required for column typesTINYINT 1 byteSMALLINT 2 bytesMEDIUMINT 3 bytesINT 4 bytesINTEGER 4 bytesBIGINT 8 bytesFLOAT (X)
Tags: style ar using SP strong file data on DivNumeric typeMySQL's numeric data types can be roughly divided into two categories, one is an integer and the other is a floating-point or decimal. Many different subtypes are available for each of these categories, and each subtype supports data of different sizes, and MyS
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.