1
# category: topic: keyword:
3
# impossible_category_1
4
# impossible_function_1
5
# impossible_function_5
6
# impossible_function_2
7
# impossible_function_1
8
# impossible_category_2
9
# impossible_function_3
10
# impossible_function_6
11
# impossible_function_4
12
# impossible_function_6
13
# impossible_category_3
14
# impossible_function_7
16
insert into mysql.help_category(help_category_id,name)values(1,'impossible_category_1');
17
select @category1_id:= 1;
18
insert into mysql.help_category(help_category_id,name)values(2,'impossible_category_2');
19
select @category2_id:= 2;
20
insert into mysql.help_category(help_category_id,name,parent_category_id)values(3,'impossible_category_3',@category2_id);
21
select @category3_id:= 3;
23
insert into mysql.help_topic(help_topic_id,name,help_category_id,description,example)values(1,'impossible_function_1',@category1_id,'description of \n impossible_function1\n','example of \n impossible_function1');
24
select @topic1_id:= 1;
25
insert into mysql.help_topic(help_topic_id,name,help_category_id,description,example)values(2,'impossible_function_2',@category1_id,'description of \n impossible_function2\n','example of \n impossible_function2');
26
select @topic2_id:= 2;
27
insert into mysql.help_topic(help_topic_id,name,help_category_id,description,example)values(3,'impossible_function_3',@category2_id,'description of \n impossible_function3\n','example of \n impossible_function3');
28
select @topic3_id:= 3;
29
insert into mysql.help_topic(help_topic_id,name,help_category_id,description,example)values(4,'impossible_function_4',@category2_id,'description of \n impossible_function4\n','example of \n impossible_function4');
30
select @topic4_id:= 4;
31
insert into mysql.help_topic(help_topic_id,name,help_category_id,description,example)values(5,'impossible_function_7',@category3_id,'description of \n impossible_function5\n','example of \n impossible_function7');
32
select @topic5_id:= 5;
34
insert into mysql.help_keyword(help_keyword_id,name)values(1,'impossible_function_1');
35
select @keyword1_id:= 1;
36
insert into mysql.help_keyword(help_keyword_id,name)values(2,'impossible_function_5');
37
select @keyword2_id:= 2;
38
insert into mysql.help_keyword(help_keyword_id,name)values(3,'impossible_function_6');
39
select @keyword3_id:= 3;
41
insert into mysql.help_relation(help_keyword_id,help_topic_id)values(@keyword1_id,@topic2_id);
42
insert into mysql.help_relation(help_keyword_id,help_topic_id)values(@keyword2_id,@topic1_id);
43
insert into mysql.help_relation(help_keyword_id,help_topic_id)values(@keyword3_id,@topic3_id);
44
insert into mysql.help_relation(help_keyword_id,help_topic_id)values(@keyword3_id,@topic4_id);
47
help 'function_of_my_dream';
49
help 'impossible_func%';
50
help 'impossible_category%';
62
help 'impossible_function_1';
63
help 'impossible_category_1';
67
alter table mysql.help_relation engine=innodb;
68
alter table mysql.help_keyword engine=innodb;
69
alter table mysql.help_topic engine=innodb;
70
alter table mysql.help_category engine=innodb;
74
help 'function_of_my_dream';
76
help 'impossible_func%';
77
help 'impossible_category%';
89
help 'impossible_function_1';
90
help 'impossible_category_1';
93
alter table mysql.help_relation engine=myisam;
94
alter table mysql.help_keyword engine=myisam;
95
alter table mysql.help_topic engine=myisam;
96
alter table mysql.help_category engine=myisam;
98
delete from mysql.help_topic where help_topic_id=@topic1_id;
99
delete from mysql.help_topic where help_topic_id=@topic2_id;
100
delete from mysql.help_topic where help_topic_id=@topic3_id;
101
delete from mysql.help_topic where help_topic_id=@topic4_id;
102
delete from mysql.help_topic where help_topic_id=@topic5_id;
104
delete from mysql.help_category where help_category_id=@category3_id;
105
delete from mysql.help_category where help_category_id=@category2_id;
106
delete from mysql.help_category where help_category_id=@category1_id;
108
delete from mysql.help_keyword where help_keyword_id=@keyword1_id;
109
delete from mysql.help_keyword where help_keyword_id=@keyword2_id;
110
delete from mysql.help_keyword where help_keyword_id=@keyword3_id;
112
delete from mysql.help_relation where help_keyword_id=@keyword1_id and help_topic_id=@topic2_id;
113
delete from mysql.help_relation where help_keyword_id=@keyword2_id and help_topic_id=@topic1_id;
114
delete from mysql.help_relation where help_keyword_id=@keyword3_id and help_topic_id=@topic3_id;
115
delete from mysql.help_relation where help_keyword_id=@keyword3_id and help_topic_id=@topic4_id;