BLOB column : BLOB : Data Types MySQL TUTORIALS


MySQL TUTORIALS » Data Types » BLOB »

 

BLOB column


mysql>
mysql> CREATE TABLE Inventory
    -> (
    ->    ID SMALLINT UNSIGNED,
    ->    Name VARCHAR(40),
    ->    Photo BLOB,
    ->    Quantity INT UNSIGNED
    -> );
Query OK, rows affected (0.03 sec)

mysql>
mysql> desc Inventory;
+----------+----------------------+------+-----+---------+-------+
| Field    | Type                 | Null | Key | Default | Extra |
+----------+----------------------+------+-----+---------+-------+
| ID       | smallint(5unsigned | YES  |     | NULL    |       |
| Name     | varchar(40)          | YES  |     | NULL    |       |
| Photo    | blob                 | YES  |     | NULL    |       |
| Quantity | int(10unsigned     | YES  |     | NULL    |       |
+----------+----------------------+------+-----+---------+-------+
rows in set (0.01 sec)

mysql>
mysql>
mysql> drop table Inventory;
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
» BLOB