<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DZone Snippets: fulltext code</title>
    <link>http://snippets.dzone.com/posts</link>
    <pubDate>Thu, 24 Jul 2008 23:01:53 GMT</pubDate>
    <description>DZone Snippets: fulltext code</description>
    <item>
      <title>Fulltext search in mysql</title>
      <link>http://snippets.dzone.com/posts/show/122</link>
      <description>&lt;code&gt;&lt;br /&gt;mysql&gt; CREATE TABLE articles (&lt;br /&gt;    -&gt;   id INT UNSIGNED AUTO_INCREMENT NOT NULL PRIMARY KEY,&lt;br /&gt;    -&gt;   title VARCHAR(200),&lt;br /&gt;    -&gt;   body TEXT,&lt;br /&gt;    -&gt;   FULLTEXT (title,body)&lt;br /&gt;    -&gt; );&lt;br /&gt;Query OK, 0 rows affected (0.00 sec)&lt;br /&gt;&lt;br /&gt;mysql&gt; INSERT INTO articles (title,body) VALUES&lt;br /&gt;    -&gt; ('MySQL Tutorial','DBMS stands for DataBase ...'),&lt;br /&gt;    -&gt; ('How To Use MySQL Well','After you went through a ...'),&lt;br /&gt;    -&gt; ('Optimizing MySQL','In this tutorial we will show ...'),&lt;br /&gt;    -&gt; ('1001 MySQL Tricks','1. Never run mysqld as root. 2. ...'),&lt;br /&gt;    -&gt; ('MySQL vs. YourSQL','In the following database comparison ...'),&lt;br /&gt;    -&gt; ('MySQL Security','When configured properly, MySQL ...');&lt;br /&gt;Query OK, 6 rows affected (0.00 sec)&lt;br /&gt;Records: 6  Duplicates: 0  Warnings: 0&lt;br /&gt;&lt;br /&gt;mysql&gt; SELECT * FROM articles&lt;br /&gt;    -&gt; WHERE MATCH (title,body) AGAINST ('database');&lt;br /&gt;+----+-------------------+------------------------------------------+&lt;br /&gt;| id | title             | body                                     |&lt;br /&gt;+----+-------------------+------------------------------------------+&lt;br /&gt;|  5 | MySQL vs. YourSQL | In the following database comparison ... |&lt;br /&gt;|  1 | MySQL Tutorial    | DBMS stands for DataBase ...             |&lt;br /&gt;+----+-------------------+------------------------------------------+&lt;br /&gt;2 rows in set (0.00 sec)&lt;br /&gt;&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;More information here.&lt;br /&gt;http://dev.mysql.com/doc/mysql/en/fulltext-search.html</description>
      <pubDate>Mon, 11 Apr 2005 03:37:55 GMT</pubDate>
      <guid>http://snippets.dzone.com/posts/show/122</guid>
      <author>korakot (Korakot Chaovavanich)</author>
    </item>
  </channel>
</rss>
