help.result
上传用户:romrleung
上传日期:2022-05-23
资源大小:18897k
文件大小:8k
源码类别:

MySQL数据库

开发平台:

Visual C++

  1. insert into mysql.help_category(help_category_id,name)values(1,'impossible_category_1');
  2. select @category1_id:= 1;
  3. @category1_id:= 1
  4. 1
  5. insert into mysql.help_category(help_category_id,name)values(2,'impossible_category_2');
  6. select @category2_id:= 2;
  7. @category2_id:= 2
  8. 2
  9. insert into mysql.help_category(help_category_id,name,parent_category_id)values(3,'impossible_category_3',@category2_id);
  10. select @category3_id:= 3;
  11. @category3_id:= 3
  12. 3
  13. 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_function1n','example of n impossible_function1');
  14. select @topic1_id:= 1;
  15. @topic1_id:= 1
  16. 1
  17. 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_function2n','example of n impossible_function2');
  18. select @topic2_id:= 2;
  19. @topic2_id:= 2
  20. 2
  21. 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_function3n','example of n impossible_function3');
  22. select @topic3_id:= 3;
  23. @topic3_id:= 3
  24. 3
  25. 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_function4n','example of n impossible_function4');
  26. select @topic4_id:= 4;
  27. @topic4_id:= 4
  28. 4
  29. 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_function5n','example of n impossible_function7');
  30. select @topic5_id:= 5;
  31. @topic5_id:= 5
  32. 5
  33. insert into mysql.help_keyword(help_keyword_id,name)values(1,'impossible_function_1');
  34. select @keyword1_id:= 1;
  35. @keyword1_id:= 1
  36. 1
  37. insert into mysql.help_keyword(help_keyword_id,name)values(2,'impossible_function_5');
  38. select @keyword2_id:= 2;
  39. @keyword2_id:= 2
  40. 2
  41. insert into mysql.help_keyword(help_keyword_id,name)values(3,'impossible_function_6');
  42. select @keyword3_id:= 3;
  43. @keyword3_id:= 3
  44. 3
  45. insert into mysql.help_relation(help_keyword_id,help_topic_id)values(@keyword1_id,@topic2_id);
  46. insert into mysql.help_relation(help_keyword_id,help_topic_id)values(@keyword2_id,@topic1_id);
  47. insert into mysql.help_relation(help_keyword_id,help_topic_id)values(@keyword3_id,@topic3_id);
  48. insert into mysql.help_relation(help_keyword_id,help_topic_id)values(@keyword3_id,@topic4_id);
  49. help 'function_of_my_dream';
  50. name is_it_category
  51. help '%possible_f%';
  52. name is_it_category
  53. impossible_function_1 N
  54. impossible_function_2 N
  55. impossible_function_3 N
  56. impossible_function_4 N
  57. impossible_function_7 N
  58. help 'impossible_func%';
  59. name is_it_category
  60. impossible_function_1 N
  61. impossible_function_2 N
  62. impossible_function_3 N
  63. impossible_function_4 N
  64. impossible_function_7 N
  65. help 'impossible_category%';
  66. name is_it_category
  67. impossible_category_1 Y
  68. impossible_category_2 Y
  69. impossible_category_3 Y
  70. help 'impossible_%';
  71. name is_it_category
  72. impossible_function_1 N
  73. impossible_function_2 N
  74. impossible_function_3 N
  75. impossible_function_4 N
  76. impossible_function_7 N
  77. impossible_category_1 Y
  78. impossible_category_2 Y
  79. impossible_category_3 Y
  80. help '%function_1';
  81. name description example
  82. impossible_function_1 description of 
  83.  impossible_function1
  84. example of 
  85.  impossible_function1
  86. help '%function_2';
  87. name description example
  88. impossible_function_2 description of 
  89.  impossible_function2
  90. example of 
  91.  impossible_function2
  92. help '%function_3';
  93. name description example
  94. impossible_function_3 description of 
  95.  impossible_function3
  96. example of 
  97.  impossible_function3
  98. help '%function_4';
  99. name description example
  100. impossible_function_4 description of 
  101.  impossible_function4
  102. example of 
  103.  impossible_function4
  104. help '%function_5';
  105. name description example
  106. impossible_function_1 description of 
  107.  impossible_function1
  108. example of 
  109.  impossible_function1
  110. help '%function_6';
  111. name is_it_category
  112. impossible_function_3 N
  113. impossible_function_4 N
  114. help '%function_7';
  115. name description example
  116. impossible_function_7 description of 
  117.  impossible_function5
  118. example of 
  119.  impossible_function7
  120. help '%category_2';
  121. source_category_name name is_it_category
  122. impossible_category_2 impossible_function_3 N
  123. impossible_category_2 impossible_function_4 N
  124. impossible_category_2 impossible_category_3 Y
  125. help 'impossible_function_1';
  126. name description example
  127. impossible_function_1 description of 
  128.  impossible_function1
  129. example of 
  130.  impossible_function1
  131. help 'impossible_category_1';
  132. source_category_name name is_it_category
  133. impossible_category_1 impossible_function_1 N
  134. impossible_category_1 impossible_function_2 N
  135. alter table mysql.help_relation engine=innodb;
  136. alter table mysql.help_keyword engine=innodb;
  137. alter table mysql.help_topic engine=innodb;
  138. alter table mysql.help_category engine=innodb;
  139. help 'function_of_my_dream';
  140. name is_it_category
  141. help '%possible_f%';
  142. name is_it_category
  143. impossible_function_1 N
  144. impossible_function_2 N
  145. impossible_function_3 N
  146. impossible_function_4 N
  147. impossible_function_7 N
  148. help 'impossible_func%';
  149. name is_it_category
  150. impossible_function_1 N
  151. impossible_function_2 N
  152. impossible_function_3 N
  153. impossible_function_4 N
  154. impossible_function_7 N
  155. help 'impossible_category%';
  156. name is_it_category
  157. impossible_category_1 Y
  158. impossible_category_2 Y
  159. impossible_category_3 Y
  160. help 'impossible_%';
  161. name is_it_category
  162. impossible_function_1 N
  163. impossible_function_2 N
  164. impossible_function_3 N
  165. impossible_function_4 N
  166. impossible_function_7 N
  167. impossible_category_1 Y
  168. impossible_category_2 Y
  169. impossible_category_3 Y
  170. help '%function_1';
  171. name description example
  172. impossible_function_1 description of 
  173.  impossible_function1
  174. example of 
  175.  impossible_function1
  176. help '%function_2';
  177. name description example
  178. impossible_function_2 description of 
  179.  impossible_function2
  180. example of 
  181.  impossible_function2
  182. help '%function_3';
  183. name description example
  184. impossible_function_3 description of 
  185.  impossible_function3
  186. example of 
  187.  impossible_function3
  188. help '%function_4';
  189. name description example
  190. impossible_function_4 description of 
  191.  impossible_function4
  192. example of 
  193.  impossible_function4
  194. help '%function_5';
  195. name description example
  196. impossible_function_1 description of 
  197.  impossible_function1
  198. example of 
  199.  impossible_function1
  200. help '%function_6';
  201. name is_it_category
  202. impossible_function_3 N
  203. impossible_function_4 N
  204. help '%function_7';
  205. name description example
  206. impossible_function_7 description of 
  207.  impossible_function5
  208. example of 
  209.  impossible_function7
  210. help '%category_2';
  211. source_category_name name is_it_category
  212. impossible_category_2 impossible_function_3 N
  213. impossible_category_2 impossible_function_4 N
  214. impossible_category_2 impossible_category_3 Y
  215. help 'impossible_function_1';
  216. name description example
  217. impossible_function_1 description of 
  218.  impossible_function1
  219. example of 
  220.  impossible_function1
  221. help 'impossible_category_1';
  222. source_category_name name is_it_category
  223. impossible_category_1 impossible_function_1 N
  224. impossible_category_1 impossible_function_2 N
  225. alter table mysql.help_relation engine=myisam;
  226. alter table mysql.help_keyword engine=myisam;
  227. alter table mysql.help_topic engine=myisam;
  228. alter table mysql.help_category engine=myisam;
  229. delete from mysql.help_topic where help_topic_id=@topic1_id;
  230. delete from mysql.help_topic where help_topic_id=@topic2_id;
  231. delete from mysql.help_topic where help_topic_id=@topic3_id;
  232. delete from mysql.help_topic where help_topic_id=@topic4_id;
  233. delete from mysql.help_topic where help_topic_id=@topic5_id;
  234. delete from mysql.help_category where help_category_id=@category3_id;
  235. delete from mysql.help_category where help_category_id=@category2_id;
  236. delete from mysql.help_category where help_category_id=@category1_id;
  237. delete from mysql.help_keyword where help_keyword_id=@keyword1_id;
  238. delete from mysql.help_keyword where help_keyword_id=@keyword2_id;
  239. delete from mysql.help_keyword where help_keyword_id=@keyword3_id;
  240. delete from mysql.help_relation where help_keyword_id=@keyword1_id and help_topic_id=@topic2_id;
  241. delete from mysql.help_relation where help_keyword_id=@keyword2_id and help_topic_id=@topic1_id;
  242. delete from mysql.help_relation where help_keyword_id=@keyword3_id and help_topic_id=@topic3_id;
  243. delete from mysql.help_relation where help_keyword_id=@keyword3_id and help_topic_id=@topic4_id;