For inserts into a DECIMAL or integer column : Decimal : Data Types MySQL TUTORIALS


MySQL TUTORIALS » Data Types » Decimal »

 

For inserts into a DECIMAL or integer column


mysql>
mysql>
mysql> CREATE TABLE t (d DECIMAL(10,0));
Query OK, rows affected (0.01 sec)

mysql>
mysql> INSERT INTO t VALUES(2.5),(2.5E0);
Query OK, rows affected, warnings (0.00 sec)
Records: 2  Duplicates: 0  Warnings: 2

mysql> SELECT FROM t;
+------+
| d    |
+------+
|    |
|    |
+------+
rows in set (0.00 sec)

mysql>
mysql> drop table t;
Query OK, rows affected (0.01 sec)

mysql>



Leave a Comment / Note


 
Verification is used to prevent unwanted posts (spam). .

Follow Navioo On Twitter

MySQL TUTORIALS

 Navioo Data Types
» Decimal