If I have a field with a data type of int with a size of 3, why would I get a 5-digit number when I query it? ...
Thank you.
--
-- Ghodmode
Give a man a fish and he'll come back to buy more... Teach a man to fish and you're out of business.
Code:
mysql> desc prod_cat;
+-------------+--------------+------+-----+---------+----------------+
| Field | Type | Null | Key | Default | Extra |
+-------------+--------------+------+-----+---------+----------------+
| rel_id | int(3) | NO | PRI | NULL | auto_increment |
| prod_id | varchar(255) | NO | MUL | NULL | |
| category | varchar(255) | NO | | NULL | |
| subcategory | varchar(255) | NO | | NULL | |
+-------------+--------------+------+-----+---------+----------------+
4 rows in set (0.01 sec)
mysql> select * from prod_cat where prod_id = 'DATAPROZ';
+--------+----------+--------------------+-------------+
| rel_id | prod_id | category | subcategory |
+--------+----------+--------------------+-------------+
| 20955 | DATAPROZ | Money & Employment | Jobs |
+--------+----------+--------------------+-------------+
1 row in set (0.01 sec)
Thank you.
--
-- Ghodmode
Give a man a fish and he'll come back to buy more... Teach a man to fish and you're out of business.