{"id":144,"date":"2016-10-26T15:30:51","date_gmt":"2016-10-26T06:30:51","guid":{"rendered":"http:\/\/jook.pe.kr\/?p=144"},"modified":"2016-10-26T15:30:51","modified_gmt":"2016-10-26T06:30:51","slug":"mysql-help-tables-%ec%82%ac%ec%9a%a9%ed%95%98%ea%b8%b0","status":"publish","type":"post","link":"http:\/\/jook.pe.kr\/?p=144","title":{"rendered":"mysql help tables \uc0ac\uc6a9\ud558\uae30"},"content":{"rendered":"<p>1. <a href=\"http:\/\/dev.mysql.com\/\">http:\/\/dev.mysql.com\/<\/a> \ud398\uc774\uc9c0\uc5d0 \uc811\uc18d\ud574\uc11c Developer Zone -&gt; Documentation \uba54\ub274\ub85c \ub4e4\uc5b4\uac00\uba74, MySQL Help Tables \ub77c\ub294 \uba54\ub274\uc5d0\uc11c \uc790\uc2e0\uc774 \uc0ac\uc6a9\ud558\ub294 \ubc84\uc804\uc758 help tables\uc555\ucd95 \ud30c\uc77c\uc744 \ub2e4\uc6b4\ub85c\ub4dc \ubc1b\ub294\ub2e4.<\/p>\n<p>2. \ub2e4\uc6b4\ub85c\ub4dc \ubc1b\uc740 \ud30c\uc77c\uc758 \uc555\ucd95\uc744 \ud480\uba74 help tables\uc758 dump \ud30c\uc77c\uc778 fill_help_tables-\ubc84\uc804.sql \ud30c\uc77c\uc774 \uc0dd\uae30\uac8c \ub41c\ub2e4. \uc774 \ud30c\uc77c\uc744 mysql \uc11c\ubc84\uc5d0 \uc5c5\ub85c\ub4dc \ud558\uace0, \uc544\ub798\uc640 \uac19\uc774 mysql db\uc5d0 sql \ud30c\uc77c\uc758 \ub0b4\uc6a9\uc744 \uc5c5\ub370\uc774\ud2b8 \ud55c\ub2e4.<\/p>\n<p>[root@localhost src]# <strong>\/usr\/local\/mysql\/bin\/mysql mysql &lt; fill_help_tables-5.1.sql<\/strong><\/p>\n<p>3. \ub370\uc774\ud130 \uc5c5\ub370\uc774\ud2b8\ub97c \uc644\ub8cc\ud55c \ud6c4 mysql \uc11c\ubc84\uc5d0 \uc811\uc18d\ud558\uba74 mysql db \ub0b4\uc5d0 help_category, help_keyword, help_relation, help_topic \ub124\uac1c\uc758 table\uc774 \uc0dd\uc131\ub41c\ub2e4.<\/p>\n<p>[root@localhost \/root]# <strong>\/usr\/local\/mysql\/bin\/mysql -u root -p mysql<\/strong><br \/>\nEnter password:<br \/>\nWelcome to the MySQL monitor.\u00a0 Commands end with ; or g.<br \/>\nYour MySQL connection id is 4<br \/>\nServer version: 5.1.24-rc-log Source distribution<\/p>\n<p>Type &#8216;help;&#8217; or &#8216;h&#8217; for help. Type &#8216;c&#8217; to clear the buffer.<\/p>\n<p>mysql&gt; <strong>show tables;<\/strong><br \/>\n+&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;+<br \/>\n| Tables_in_mysql\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 |<br \/>\n+&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;+<br \/>\n| columns_priv\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 |<br \/>\n| db\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 |<br \/>\n| event\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 |<br \/>\n| func\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 |<br \/>\n| general_log\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 |<br \/>\n| <strong>help_category<\/strong>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 |<br \/>\n|<strong> help_keyword<\/strong>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 |<br \/>\n| <strong>help_relation<\/strong>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 |<br \/>\n| <strong>help_topic<\/strong>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 |<br \/>\n| host\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 |<br \/>\n| ndb_binlog_index\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 |<br \/>\n| plugin\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 |<br \/>\n| proc\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 |<br \/>\n| procs_priv\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 |<br \/>\n| servers\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 |<br \/>\n| slow_log\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 |<br \/>\n| tables_priv\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 |<br \/>\n| time_zone\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 |<br \/>\n| time_zone_leap_second\u00a0\u00a0\u00a0\u00a0 |<br \/>\n| time_zone_name\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 |<br \/>\n| time_zone_transition\u00a0\u00a0\u00a0\u00a0\u00a0 |<br \/>\n| time_zone_transition_type |<br \/>\n| user\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 |<br \/>\n+&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;+<br \/>\n23 rows in set (0.00 sec)<\/p>\n<p>mysql&gt;<\/p>\n<p>4. \uc774\uc81c \ubcf8\uaca9\uc801\uc73c\ub85c help table\uc744 \uc774\uc6a9\ud574\uc11c mysql \uacf5\ubd80\ub97c \uc2dc\uc791 \ud560 \uc218 \uc788\ub2e4.. ^^<br \/>\nhelp \ub2e4\uc74c\uc5d0 \ucffc\ub9ac\ubb38\uc758 \uc77c\ubd80\ubd84\uc744 \uc785\ub825\ud558\uba74 \ud574\ub2f9 \ucffc\ub9ac\uc758 \uc0ac\uc6a9\ubc95 \ub4f1\uc5d0 \ub300\ud55c \uc124\uba85\uc774 \ub098\uc628\ub2e4. (<strong>\uc608\uc81c\uae4c\uc9c0<\/strong>.. ^^)<\/p>\n<p>ex) help select -&gt; select\uc758 \uc0ac\uc6a9\ubc95\uc774 \ucd9c\ub825\ub41c\ub2e4.<br \/>\nhelp like -&gt; \ucffc\ub9ac\ubb38\uc911 like \uad6c\ubb38\uc758 \uc0ac\uc6a9\ubc95\uc774 \ucd9c\ub825\ub41c\ub2e4.<\/p>\n<p>mysql&gt; <strong>help select<\/strong><br \/>\nName: &#8216;SELECT&#8217;<br \/>\nDescription:<br \/>\nSyntax:<br \/>\nSELECT<br \/>\n[ALL | DISTINCT | DISTINCTROW ]<br \/>\n[HIGH_PRIORITY]<br \/>\n[STRAIGHT_JOIN]<br \/>\n[SQL_SMALL_RESULT] [SQL_BIG_RESULT] [SQL_BUFFER_RESULT]<br \/>\n[SQL_CACHE | SQL_NO_CACHE] [SQL_CALC_FOUND_ROWS]<br \/>\nselect_expr, &#8230;<br \/>\n[FROM table_references<br \/>\n[WHERE where_condition]<br \/>\n[GROUP BY {col_name | expr | position}<br \/>\n[ASC | DESC], &#8230; [WITH ROLLUP]]<br \/>\n[HAVING where_condition]<br \/>\n[ORDER BY {col_name | expr | position}<br \/>\n[ASC | DESC], &#8230;]<br \/>\n[LIMIT {[offset,] row_count | row_count OFFSET offset}]<br \/>\n[PROCEDURE procedure_name(argument_list)]<br \/>\n[INTO OUTFILE &#8216;file_name&#8217; export_options<br \/>\n| INTO DUMPFILE &#8216;file_name&#8217;<br \/>\n| INTO var_name [, var_name]]<br \/>\n[FOR UPDATE | LOCK IN SHARE MODE]]<\/p>\n<p>SELECT is used to retrieve rows selected from one or more tables, and<br \/>\ncan include UNION statements and subqueries. See [HELP UNION], and<br \/>\n<a href=\"http:\/\/dev.mysql.com\/doc\/refman\/5.1\/en\/subqueries.html\">http:\/\/dev.mysql.com\/doc\/refman\/5.1\/en\/subqueries.html<\/a>.<\/p>\n<p>The most commonly used clauses of SELECT statements are these:<\/p>\n<p>o Each select_expr indicates a column that you want to retrieve. There<br \/>\nmust be at least one select_expr.<\/p>\n<p>o table_references indicates the table or tables from which to retrieve<br \/>\nrows. Its syntax is described in [HELP JOIN].<\/p>\n<p>o The WHERE clause, if given, indicates the condition or conditions<br \/>\nthat rows must satisfy to be selected. where_condition is an<br \/>\nexpression that evaluates to true for each row to be selected. The<br \/>\nstatement selects all rows if there is no WHERE clause.<\/p>\n<p>In the WHERE clause, you can use any of the functions and operators<br \/>\nthat MySQL supports, except for aggregate (summary) functions. See<br \/>\n[HELP =].<\/p>\n<p>SELECT can also be used to retrieve rows computed without reference to<br \/>\nany table.<\/p>\n<p>URL: <a href=\"http:\/\/dev.mysql.com\/doc\/refman\/5.1\/en\/select.html\">http:\/\/dev.mysql.com\/doc\/refman\/5.1\/en\/select.html<\/a><br \/>\nmysql&gt; <strong>help count<\/strong><br \/>\nName: &#8216;COUNT&#8217;<br \/>\nDescription:<br \/>\nSyntax:<br \/>\nCOUNT(expr)<\/p>\n<p>Returns a count of the number of non-NULL values of expr in the rows<br \/>\nretrieved by a SELECT statement. The result is a BIGINT value.<\/p>\n<p>COUNT() returns 0 if there were no matching rows.<\/p>\n<p>URL: <a href=\"http:\/\/dev.mysql.com\/doc\/refman\/5.1\/en\/group-by-functions.html\">http:\/\/dev.mysql.com\/doc\/refman\/5.1\/en\/group-by-functions.html<\/a><\/p>\n<p>Examples:<br \/>\nmysql&gt; SELECT student.student_name,COUNT(*)<br \/>\n-&gt;\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 FROM student,course<br \/>\n-&gt;\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 WHERE student.student_id=course.student_id<br \/>\n-&gt;\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 GROUP BY student_name;<\/p>\n<p>mysql&gt; <strong>help like<\/strong><br \/>\nName: &#8216;LIKE&#8217;<br \/>\nDescription:<br \/>\nSyntax:<br \/>\nexpr LIKE pat [ESCAPE &#8216;escape_char&#8217;]<\/p>\n<p>Pattern matching using SQL simple regular expression comparison.<br \/>\nReturns 1 (TRUE) or 0 (FALSE). If either expr or pat is NULL, the<br \/>\nresult is NULL.<\/p>\n<p>The pattern need not be a literal string. For example, it can be<br \/>\nspecified as a string expression or table column.<\/p>\n<p>URL: <a href=\"http:\/\/dev.mysql.com\/doc\/refman\/5.1\/en\/string-comparison-functions.html\">http:\/\/dev.mysql.com\/doc\/refman\/5.1\/en\/string-comparison-functions.html<\/a><\/p>\n<p>Examples:<br \/>\nmysql&gt; SELECT &#8216;David!&#8217; LIKE &#8216;David_&#8217;;<br \/>\n-&gt; 1<br \/>\nmysql&gt; SELECT &#8216;David!&#8217; LIKE &#8216;%D%v%&#8217;;<br \/>\n-&gt; 1<\/p>\n<p>mysql&gt;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>1. http:\/\/dev.mysql.com\/ \ud398\uc774\uc9c0\uc5d0 \uc811\uc18d\ud574\uc11c Developer Zone -&gt; Documentation \uba54\ub274\ub85c \ub4e4\uc5b4\uac00\uba74, MySQL Help Tables \ub77c\ub294 \uba54\ub274\uc5d0\uc11c \uc790\uc2e0\uc774 \uc0ac\uc6a9\ud558\ub294 \ubc84\uc804\uc758 help tables\uc555\ucd95<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5,6],"tags":[],"_links":{"self":[{"href":"http:\/\/jook.pe.kr\/index.php?rest_route=\/wp\/v2\/posts\/144"}],"collection":[{"href":"http:\/\/jook.pe.kr\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/jook.pe.kr\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/jook.pe.kr\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/jook.pe.kr\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=144"}],"version-history":[{"count":0,"href":"http:\/\/jook.pe.kr\/index.php?rest_route=\/wp\/v2\/posts\/144\/revisions"}],"wp:attachment":[{"href":"http:\/\/jook.pe.kr\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=144"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/jook.pe.kr\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=144"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/jook.pe.kr\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=144"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}