W dniu 2011-12-07 15:03, Tomasz Chiliński pisze:
On 07.12.2011 15:22, Tomasz Chiliński wrote:
On 07.12.2011 15:07, Przemysław Backiel wrote:
mysql> SHOW INDEX FROM customerassignments;
+---------------------+------------+-----------------+--------------+-----------------+-----------+-------------+----------+--------+------+------------+---------+---------------+
| Table | Non_unique | Key_name | Seq_in_index | Column_name | Collation | Cardinality | Sub_part | Packed | Null | Index_type | Comment | Index_comment |
+---------------------+------------+-----------------+--------------+-----------------+-----------+-------------+----------+--------+------+------------+---------+---------------+
| customerassignments | 0 | PRIMARY | 1 | id | A | 2 | NULL | NULL | | BTREE | | | | customerassignments | 0 | customergroupid | 1 | customergroupid | A | 2 | NULL | NULL | | BTREE | | | | customerassignments | 0 | customergroupid | 2 | customerid | A | 2 | NULL | NULL | | BTREE | | | | customerassignments | 1 | customer_idx | 1 | customerid | A | 14 | NULL | NULL | | BTREE | | |
+---------------------+------------+-----------------+--------------+-----------------+-----------+-------------+----------+--------+------+------------+---------+---------------+
4 rows in set (0.00 sec)
Przemku, a mógłbyś jeszcze pokazać wyjście polecenia: SHOW INDEX FROM rtattachments ?
tylko ze ręcznie wywowałem polecenie na innej tabeli
problemy z indexami były wszędzie gdzie klikałem :)
mysql> SHOW INDEX FROM rtattachments; +---------------+------------+-----------+--------------+-------------+-----------+-------------+----------+--------+------+------------+---------+---------------+ | Table | Non_unique | Key_name | Seq_in_index | Column_name | Collation | Cardinality | Sub_part | Packed | Null | Index_type | Comment | Index_comment | +---------------+------------+-----------+--------------+-------------+-----------+-------------+----------+--------+------+------------+---------+---------------+ | rtattachments | 1 | messageid | 1 | messageid | A | 0 | NULL | NULL | | BTREE | | | +---------------+------------+-----------+--------------+-------------+-----------+-------------+----------+--------+------+------------+---------+---------------+ 1 row in set (0.00 sec)