Manual:linktarget table

From mediawiki.org
Other languages:
Manual:Contents MediaWiki database layout linktarget table
MediaWiki version:
1.38

Fields[edit]

lt_id[edit]

Primary key.

lt_namespace[edit]

Namespace of the link target.

lt_title[edit]

Text part of link target excluding namespace.

Schema summary[edit]

MediaWiki version:
1.38

DESCRIBE linktarget;

+--------------+---------------------+------+-----+---------+----------------+
| Field        | Type                | Null | Key | Default | Extra          |
+--------------+---------------------+------+-----+---------+----------------+
| lt_id        | bigint(20) unsigned | NO   | PRI | NULL    | auto_increment |
| lt_namespace | int(11)             | NO   | MUL | NULL    |                |
| lt_title     | varbinary(255)      | NO   |     | NULL    |                |
+--------------+---------------------+------+-----+---------+----------------+

Indexes[edit]

MediaWiki version:
1.38
Gerrit change 754989

SHOW INDEX IN linktarget;

+------------+------------+--------------------+--------------+--------------+-----------+-------------+----------+--------+------+------------+---------+---------------+
| Table      | Non_unique | Key_name           | Seq_in_index | Column_name  | Collation | Cardinality | Sub_part | Packed | Null | Index_type | Comment | Index_comment |
+------------+------------+--------------------+--------------+--------------+-----------+-------------+----------+--------+------+------------+---------+---------------+
| linktarget |          0 | PRIMARY            |            1 | lt_id        | A         |           0 |     NULL | NULL   |      | BTREE      |         |               |
| linktarget |          0 | lt_namespace_title |            1 | lt_namespace | A         |           0 |     NULL | NULL   |      | BTREE      |         |               |
| linktarget |          0 | lt_namespace_title |            2 | lt_title     | A         |           0 |     NULL | NULL   |      | BTREE      |         |               |
+------------+------------+--------------------+--------------+--------------+-----------+-------------+----------+--------+------+------------+---------+---------------+

Indexes[edit]

MediaWiki version:
1.38

SHOW INDEX IN linktarget;

+------------+------------+--------------------+--------------+--------------+-----------+-------------+----------+--------+------+------------+---------+---------------+
| Table      | Non_unique | Key_name           | Seq_in_index | Column_name  | Collation | Cardinality | Sub_part | Packed | Null | Index_type | Comment | Index_comment |
+------------+------------+--------------------+--------------+--------------+-----------+-------------+----------+--------+------+------------+---------+---------------+
| linktarget |          0 | PRIMARY            |            1 | lt_id        | A         |           0 |     NULL | NULL   |      | BTREE      |         |               |
| linktarget |          0 | lt_namespace_title |            1 | lt_namespace | A         |           0 |     NULL | NULL   |      | BTREE      |         |               |
| linktarget |          0 | lt_namespace_title |            2 | lt_title     | A         |           0 |     NULL | NULL   |      | BTREE      |         |               |
+------------+------------+--------------------+--------------+--------------+-----------+-------------+----------+--------+------+------------+---------+---------------+