Insert value to TINYINT column : TINYINT « Data Types « MySQL Tutorial






mysql>
mysql> CREATE TABLE myTable(
    ->    ID TINYINT UNSIGNED NOT NULL AUTO_INCREMENT PRIMARY KEY,
    ->    Name VARCHAR(50) NOT NULL
    -> );
Query OK, 0 rows affected (0.05 sec)

mysql>
mysql>
mysql> INSERT INTO myTable (ID, Name)VALUES (1, 'Ain\'t ');
Query OK, 1 row affected (0.00 sec)

mysql>
mysql> select * from myTable;
+----+--------+
| ID | Name   |
+----+--------+
|  1 | Ain't  |
+----+--------+
1 row in set (0.00 sec)

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

mysql>
mysql>








10.25.TINYINT
10.25.1.TINYINT[(M)] [UNSIGNED] [ZEROFILL]
10.25.2.Insert value to TINYINT column