|
比方说
- mysql> create table test
- -> (id INT(5) PRIMARY KEY NOT NULL AUTO_INCREMENT,
- -> name CHAR(5) NOT NULL,
- -> num FLOAT(6,2));
- Query OK, 0 rows affected (0.06 sec)
-
- mysql> insert into test
- -> values(NULL, "ABC", 123456.7891);
- Query OK, 1 row affected (0.00 sec)
-
- mysql> SELECT * FROM test;
- +----+------+-----------+
- | id | name | num |
- +----+------+-----------+
- | 1 | ABC | 123456.79 |
- +----+------+-----------+
- 1 row in set (0.00 sec)
复制代码
这里的FLOAT(6.2)怎么解释? |
|