Admin:db

From The Scuba Wiki

(Difference between revisions)
Jump to: navigation, search
(DB Stuff)
(DB Stuff)
Line 1: Line 1:
===== DB Stuff =====
===== DB Stuff =====
 +
 +
Note, edit this page to actually be able to see anything.  It's gibberish in wiki format.
Categories can easily be searched in the categorylinks table
Categories can easily be searched in the categorylinks table
Line 7: Line 9:
Here is the DB structure:
Here is the DB structure:
-
<nowiki>mysql> describe categorylinks;
+
mysql> describe categorylinks;
+--------------+------------------+------+-----+-------------------+-------+
+--------------+------------------+------+-----+-------------------+-------+
| Field        | Type            | Null | Key | Default          | Extra |
| Field        | Type            | Null | Key | Default          | Extra |
Line 15: Line 17:
| cl_sortkey  | varbinary(70)    | NO  |    | NULL              |      |  
| cl_sortkey  | varbinary(70)    | NO  |    | NULL              |      |  
| cl_timestamp | timestamp        | YES  |    | CURRENT_TIMESTAMP |      |  
| cl_timestamp | timestamp        | YES  |    | CURRENT_TIMESTAMP |      |  
-
+--------------+------------------+------+-----+-------------------+-------+</nowiki>
+
+--------------+------------------+------+-----+-------------------+-------+

Revision as of 03:45, 9 February 2010

DB Stuff

Note, edit this page to actually be able to see anything. It's gibberish in wiki format.

Categories can easily be searched in the categorylinks table

select * FROM categorylinks WHERE cl_to = 'Test'

Here is the DB structure:

mysql> describe categorylinks; +--------------+------------------+------+-----+-------------------+-------+ | Field | Type | Null | Key | Default | Extra | +--------------+------------------+------+-----+-------------------+-------+ | cl_from | int(10) unsigned | NO | PRI | 0 | | | cl_to | varbinary(255) | NO | PRI | NULL | | | cl_sortkey | varbinary(70) | NO | | NULL | | | cl_timestamp | timestamp | YES | | CURRENT_TIMESTAMP | | +--------------+------------------+------+-----+-------------------+-------+

Personal tools
support the site