1
insert into mysql.help_category(help_category_id,name)values(10001,'impossible_category_1');
3
Warning 1364 Field 'url' doesn't have a default value
4
select @category1_id:= 10001;
7
insert into mysql.help_category(help_category_id,name)values(10002,'impossible_category_2');
9
Warning 1364 Field 'url' doesn't have a default value
10
select @category2_id:= 10002;
13
insert into mysql.help_category(help_category_id,name,parent_category_id)values(10003,'impossible_category_3',@category2_id);
15
Warning 1364 Field 'url' doesn't have a default value
16
select @category3_id:= 10003;
19
insert into mysql.help_topic(help_topic_id,name,help_category_id,description,example)values(10101,'impossible_function_1',@category1_id,'description of \n impossible_function1\n','example of \n impossible_function1');
21
Warning 1364 Field 'url' doesn't have a default value
22
select @topic1_id:= 10101;
25
insert into mysql.help_topic(help_topic_id,name,help_category_id,description,example)values(10102,'impossible_function_2',@category1_id,'description of \n impossible_function2\n','example of \n impossible_function2');
27
Warning 1364 Field 'url' doesn't have a default value
28
select @topic2_id:= 10102;
31
insert into mysql.help_topic(help_topic_id,name,help_category_id,description,example)values(10103,'impossible_function_3',@category2_id,'description of \n impossible_function3\n','example of \n impossible_function3');
33
Warning 1364 Field 'url' doesn't have a default value
34
select @topic3_id:= 10103;
37
insert into mysql.help_topic(help_topic_id,name,help_category_id,description,example)values(10104,'impossible_function_4',@category2_id,'description of \n impossible_function4\n','example of \n impossible_function4');
39
Warning 1364 Field 'url' doesn't have a default value
40
select @topic4_id:= 10104;
43
insert into mysql.help_topic(help_topic_id,name,help_category_id,description,example)values(10105,'impossible_function_7',@category3_id,'description of \n impossible_function5\n','example of \n impossible_function7');
45
Warning 1364 Field 'url' doesn't have a default value
46
select @topic5_id:= 10105;
49
insert into mysql.help_keyword(help_keyword_id,name)values(10201,'impossible_function_1');
50
select @keyword1_id:= 10201;
53
insert into mysql.help_keyword(help_keyword_id,name)values(10202,'impossible_function_5');
54
select @keyword2_id:= 10202;
57
insert into mysql.help_keyword(help_keyword_id,name)values(10203,'impossible_function_6');
58
select @keyword3_id:= 10203;
61
insert into mysql.help_relation(help_keyword_id,help_topic_id)values(@keyword1_id,@topic2_id);
62
insert into mysql.help_relation(help_keyword_id,help_topic_id)values(@keyword2_id,@topic1_id);
63
insert into mysql.help_relation(help_keyword_id,help_topic_id)values(@keyword3_id,@topic3_id);
64
insert into mysql.help_relation(help_keyword_id,help_topic_id)values(@keyword3_id,@topic4_id);
65
help 'function_of_my_dream';
69
impossible_function_1 N
70
impossible_function_2 N
71
impossible_function_3 N
72
impossible_function_4 N
73
impossible_function_7 N
74
help 'impossible_func%';
76
impossible_function_1 N
77
impossible_function_2 N
78
impossible_function_3 N
79
impossible_function_4 N
80
impossible_function_7 N
81
help 'impossible_category%';
83
impossible_category_1 Y
84
impossible_category_2 Y
85
impossible_category_3 Y
88
impossible_function_1 N
89
impossible_function_2 N
90
impossible_function_3 N
91
impossible_function_4 N
92
impossible_function_7 N
93
impossible_category_1 Y
94
impossible_category_2 Y
95
impossible_category_3 Y
97
name description example
98
impossible_function_1 description of
103
name description example
104
impossible_function_2 description of
109
name description example
110
impossible_function_3 description of
115
name description example
116
impossible_function_4 description of
121
name description example
122
impossible_function_1 description of
128
impossible_function_3 N
129
impossible_function_4 N
131
name description example
132
impossible_function_7 description of
137
source_category_name name is_it_category
138
impossible_category_2 impossible_function_3 N
139
impossible_category_2 impossible_function_4 N
140
impossible_category_2 impossible_category_3 Y
141
help 'impossible_function_1';
142
name description example
143
impossible_function_1 description of
147
help 'impossible_category_1';
148
source_category_name name is_it_category
149
impossible_category_1 impossible_function_1 N
150
impossible_category_1 impossible_function_2 N
151
alter table mysql.help_relation engine=innodb;
152
alter table mysql.help_keyword engine=innodb;
153
alter table mysql.help_topic engine=innodb;
154
alter table mysql.help_category engine=innodb;
155
help 'function_of_my_dream';
159
impossible_function_1 N
160
impossible_function_2 N
161
impossible_function_3 N
162
impossible_function_4 N
163
impossible_function_7 N
164
help 'impossible_func%';
166
impossible_function_1 N
167
impossible_function_2 N
168
impossible_function_3 N
169
impossible_function_4 N
170
impossible_function_7 N
171
help 'impossible_category%';
173
impossible_category_1 Y
174
impossible_category_2 Y
175
impossible_category_3 Y
178
impossible_function_1 N
179
impossible_function_2 N
180
impossible_function_3 N
181
impossible_function_4 N
182
impossible_function_7 N
183
impossible_category_1 Y
184
impossible_category_2 Y
185
impossible_category_3 Y
187
name description example
188
impossible_function_1 description of
193
name description example
194
impossible_function_2 description of
199
name description example
200
impossible_function_3 description of
205
name description example
206
impossible_function_4 description of
211
name description example
212
impossible_function_1 description of
218
impossible_function_3 N
219
impossible_function_4 N
221
name description example
222
impossible_function_7 description of
227
source_category_name name is_it_category
228
impossible_category_2 impossible_function_3 N
229
impossible_category_2 impossible_function_4 N
230
impossible_category_2 impossible_category_3 Y
231
help 'impossible_function_1';
232
name description example
233
impossible_function_1 description of
237
help 'impossible_category_1';
238
source_category_name name is_it_category
239
impossible_category_1 impossible_function_1 N
240
impossible_category_1 impossible_function_2 N
241
alter table mysql.help_relation engine=myisam;
242
alter table mysql.help_keyword engine=myisam;
243
alter table mysql.help_topic engine=myisam;
244
alter table mysql.help_category engine=myisam;
245
delete from mysql.help_topic where help_topic_id=@topic1_id;
246
delete from mysql.help_topic where help_topic_id=@topic2_id;
247
delete from mysql.help_topic where help_topic_id=@topic3_id;
248
delete from mysql.help_topic where help_topic_id=@topic4_id;
249
delete from mysql.help_topic where help_topic_id=@topic5_id;
250
delete from mysql.help_category where help_category_id=@category3_id;
251
delete from mysql.help_category where help_category_id=@category2_id;
252
delete from mysql.help_category where help_category_id=@category1_id;
253
delete from mysql.help_keyword where help_keyword_id=@keyword1_id;
254
delete from mysql.help_keyword where help_keyword_id=@keyword2_id;
255
delete from mysql.help_keyword where help_keyword_id=@keyword3_id;
256
delete from mysql.help_relation where help_keyword_id=@keyword1_id and help_topic_id=@topic2_id;
257
delete from mysql.help_relation where help_keyword_id=@keyword2_id and help_topic_id=@topic1_id;
258
delete from mysql.help_relation where help_keyword_id=@keyword3_id and help_topic_id=@topic3_id;
259
delete from mysql.help_relation where help_keyword_id=@keyword3_id and help_topic_id=@topic4_id;
261
DROP TABLE IF EXISTS t1;
262
CREATE TABLE t1 (i INT);
263
LOCK TABLES t1 WRITE;