Data type mapping occurs at table creation time, after which the original type specifications are discarded. : Introduction : Data Types MySQL TUTORIALS


MySQL TUTORIALS » Data Types » Introduction »

 

Data type mapping occurs at table creation time, after which the original type specifications are discarded.


mysql>
mysql> CREATE TABLE t (a BOOL, b FLOAT8, c LONG VARCHAR, d NUMERIC);
Query OK, rows affected (0.01 sec)

mysql>
mysql> DESCRIBE t;
+-------+---------------+------+-----+---------+-------+
| Field | Type          | Null | Key | Default | Extra |
+-------+---------------+------+-----+---------+-------+
| a     | tinyint(1)    | YES  |     | NULL    |       |
| b     | double        | YES  |     | NULL    |       |
| c     | mediumtext    | YES  |     | NULL    |       |
| d     | decimal(10,0| YES  |     | NULL    |       |
+-------+---------------+------+-----+---------+-------+
rows in set (0.00 sec)

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



Leave a Comment / Note


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

Follow Navioo On Twitter

MySQL TUTORIALS

 Navioo Data Types
» Introduction