|
|
|
InnoDB foreign
|
|||
|---|---|---|---|
|
#18+
Прикольная херня получается если добавить в эту табличку(FOREIGN на RESTRICT/RESTRICT) запись где parent_id=cat_id То с ней потом ничего не сделаешь :) CREATE TABLE pp_categories ( cat_id int(10) unsigned NOT NULL auto_increment, parent_id int(10) unsigned NOT NULL default '0', PRIMARY KEY (cat_id), KEY I_CAT_PARENT_ID (parent_id), CONSTRAINT FK_Reference_to_parent_category FOREIGN KEY (parent_id) REFERENCES pp_categories (cat_id) ) TYPE=InnoDB ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 22.07.2004, 14:27 |
|
||
|
|

start [/forum/topic.php?fid=47&msg=32616961&tid=1854961]: |
0ms |
get settings: |
10ms |
get forum list: |
20ms |
check forum access: |
4ms |
check topic access: |
4ms |
track hit: |
435ms |
get topic data: |
10ms |
get forum data: |
2ms |
get page messages: |
32ms |
get tp. blocked users: |
1ms |
| others: | 254ms |
| total: | 772ms |

| 0 / 0 |
