Mysql numeric data type bitsCN.com
Mysql value data type
MySQL 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
Mysql adds and deletes the field type, mysql Field
Add a MySQL field:
Alter table 'user _ movement_log 'Add column GatewayId int not null default 0 AFTER 'regionid' (AFTER which field is added)
Delete field:
alter table `user_movement_log` drop
MySQL floating point type, mysql floating point type
MySQL floating-point and fixed-point types can be expressed by the type name plus (M, D). M indicates the total length of the value, and D indicates the length after the decimal point, M and D are
Mysqlfloatdouble type bitsCN.com
1. float typeThe float column type cannot be found by default. the precision must be specified,For example, if num float, insert into table (num) values (0.12); select * from table where num = 0.12, empty set.Num
MySQL field data type MySQL has three types of columns: numbers, strings, and dates. Numeric type
The number column type is used to store various numeric data, such as price, age, or quantity. There are two types of numeric columns: integer and
MYSQL getting started 4: MYSQL data type bitsCN.com
MYSQL entry 4: MYSQL data types
Related links:
MYSQL: Basic operations
Http: // database/201212/173868 .html
MYSQL 2: use regular expressions to search
Http: // database/201212/173869 .html
MYSQL
Basic mysql Data Type, mysql Data Type
Big Data Type
Create table data (fti TINYINT, fsi SMALLINT,
Fmi MEDIUMINT, fi INT, fbi BIGINT );
Int type
Create table data1 (age INT (7 ));
Float Type
Create table data2 (price FLOAT (5, 2 ));
Insert
Mysql Date and Time type, mysql Date and Time Type
Current_time display current time now () display current date and time type YEAR 1 byte 1901 ~ 2155 zero value 0000 DATE 4 byte 1000-01-01 ~ 9999-12-31 0 value 0000: 00: 00 TIME 3 bytes-838: 59: 59
Mysqlfloatdouble type
1. float type
The float column type cannot be found by default. the precision must be specified,
For example, numfloat, insert into table (num) values (0.12); select * from table where num = 0.12, empty set.
Num float (0.12),
MySQL: date type, mysql date type
1. datetime (year, month, day, hour, minute, second)
Format: 'yyy-MM-DD HH: MM: ss '.
Occupied: 8 bytes
Range: 1000-01-01 00:00:00 to 9999-12-31 23:59:59.
Tip: it can receive dates of any separator, mainly to
1. Numbers: Integral type: tinyinit int bigintThe Tinyinit int bigint, respectively, refers to the different number widths, from the smallest to the largestThere are also int (5) in parentheses after the number, for the deposit is not any
Turn from:Http://www.cnblogs.com/doit8791/archive/2012/05/28/2522556.htmlVariations of the 1.varchar typeThe maximum length of the MySQL database's varchar type is limited to 255 in versions under 4.1, and its data range can be 0~255 or 1~255
Day02One, MySQL indexSecond, MySQL storage engine+++++++++++++++++++++++++++++++++++One, MySQL index1.1 Index Description: Equivalent to "book directory"Page 50001~200 directory informationPhonetic sortingRadical sortStroke sort201~5000 body1.2
Ing between Java data types and MySql Data Types [go], data types mysql
Type name
Display Length
Database Type
JAVA type
JDBC index (int)
Description
VARCHAR
L + N
VARCHAR
As a new keyword introduced by Sun, Enum looks like a special class. It can also have its own variables, define its own methods, and implement one or more interfaces. When declaring an enum type, we should note that the enum type has the following
First class: integer data bit: bit data type represents 0, 1 or NULL, that is, true, false. 1byte.int: 4 bytes are used to store positive and negative numbers. the storage range is-2 ^ 31 to 2 ^ 31-1.smallint. positive and negative values are stored
Hibernate annotation ing mysql database text type Hibernate
@ Lob is usually used together with @ Basic to increase the access speed.
@ Lob
@ Basic (fetch = FetchType. LAZY)
@ Column (name = "DtaContent", columnDefinition = "CLOB", nullable =
Mysql Technology Insider-notes-Chapter 2 data types
Chapter 2 data types
Do not use UNSIGNED in Mysql as it may bring unexpected results.
Show create table tablename/G; view the TABLE creation statement
ZEROFILL will automatically
Mysql field type source Web site: http://kimbriggs.com/computers/computer-notes/mysql-notes/mysql-data-types-50.file
Type {storage}
Name
Range
Attributes
Default
Numeric{1 byte}
TINYINT [(M)]
-From 128 TO 127[0
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.