为什么这是重复键?
mysql> describe tagged_chemicals;
+-------------+---------+------+-----+---------+-------+
| Field | Type | Null | Key | Default | Extra |
+-------------+---------+------+-----+---------+-------+
| bar_code | text | NO | | NULL | |
| rfid_tag | text | NO | UNI | NULL | |
| checked_out | char(1) | NO | | N | |
+-------------+---------+------+-----+---------+-------+
3 rows in set (0.04 sec)
mysql> select * from tagged_chemicals;
+-------------+----------------------+-------------+
| bar_code | rfid_tag | checked_out |
+-------------+----------------------+-------------+
| 416444.0001 | 34443030304142453141 | N |
+-------------+----------------------+-------------+
1 row in set (0.00 sec)
mysql> INSERT INTO tagged_chemicals (rfid_tag, bar_code) VALUES("34443030304144393935", "412577.0001B");
ERROR 1062 (23000): Duplicate entry '34443030304144393935' for key 'rfid_tag'