|
|
|
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:06 |
|
||
|
|

start [/forum/topic.php?desktop=1&fid=47&tid=1854961]: |
0ms |
get settings: |
10ms |
get forum list: |
23ms |
check forum access: |
3ms |
check topic access: |
3ms |
track hit: |
46ms |
get topic data: |
12ms |
get forum data: |
3ms |
get page messages: |
33ms |
get tp. blocked users: |
2ms |
| others: | 236ms |
| total: | 371ms |

| 0 / 0 |
