Mysql float double type 1. float Type float column type default length cannot be found, you must specify the precision, such as num float, insert into table (num) values (0.12); select * from table where num = 0.12, empty set. Num float (0.12),
A. Numeric type
MySQL supports numeric types in all standard SQL, including strict data types (integer,smallint,decimal,numberic), and approximate numeric data types (float,real,double presision). And on this basis to expand.
After the expansion,
MySQL常用指令,java,php程序员,数据库工程师必备。程序员小冰常用资料整理MySQL common commands (for reference)The most common display commands are:1. Display the list of databases.show databases;2. Display the data table in the library:Use MySQL;Show tables;3, display the
1.float typeFloat column Type default length cannot find results, you must specify precision,For example , num float, INSERT into table (num) values (0.12); Select * from table where num=0.12, empty set.Num Float (9,7), insert into table (num)
See: http://blog.yemou.net/article/query/info/tytfjhfascvhzxcyt336A real number is one with a fractional part. However, they are not just for storing fractional parts, but they can also be usedDeclmal stores an integer larger than the bigint. MySQL
1.float typeThe default length of the float column type does not find the result. Precision must be specified.For example , num float, INSERT into table (num) values (0.12); Select * FROM table where num=0.12 words. Empty set.Num Float (9,7),
1. float TypeThe float column type cannot be found by default. The precision must be specified,For example, numFloat,InsertTable (num) values (0.12); select* From table where num = 0.12, empty set.Num float (9, 7 ),InsertTable (num) values (0.12);
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)
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
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 addition, it is extended.
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.