<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DZone Snippets: mysql code</title>
    <link>http://snippets.dzone.com/posts</link>
    <pubDate>Sun, 27 Jul 2008 03:12:53 GMT</pubDate>
    <description>DZone Snippets: mysql code</description>
    <item>
      <title>Query MySQL accent insensitive in latin1_general_ci</title>
      <link>http://snippets.dzone.com/posts/show/5677</link>
      <description>Query MySQL accent insensitive in latin1_general_ci&lt;br /&gt;&lt;br /&gt;&lt;code&gt;&lt;br /&gt;SELECT * FROM `table`WHERE `text` LIKE CONVERT(_utf8 '%cinema%' USING utf8) COLLATE utf8_general_ci ;&lt;br /&gt;&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.ab-d.fr/"&gt;Source: &lt;/a&gt;&lt;a href="http://www.ab-d.fr/date/2008-06-21/"&gt;Query MySQL accent insensitive in latin1_general_ci&lt;/a&gt;</description>
      <pubDate>Sat, 21 Jun 2008 10:34:59 GMT</pubDate>
      <guid>http://snippets.dzone.com/posts/show/5677</guid>
      <author>ki4ngel (Benoit Asselin)</author>
    </item>
    <item>
      <title>Copy MySQL table</title>
      <link>http://snippets.dzone.com/posts/show/5489</link>
      <description>&lt;code&gt;&lt;br /&gt;CREATE TABLE table_destination SELECT * FROM table_source ;&lt;br /&gt;&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;&lt;code&gt;&lt;br /&gt;CREATE TABLE table_destination LIKE table_source ;&lt;br /&gt;INSERT INTO table_destination SELECT * FROM table_source ;&lt;br /&gt;&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;Source: &lt;a href="http://www.ab-d.fr/"&gt;Asselin Benoit Development ( MySQL, SQL )&lt;/a&gt; &amp; &lt;a href="http://www.agenceici.com"&gt;Agence ici, agence de communication&lt;/a&gt;</description>
      <pubDate>Tue, 13 May 2008 17:31:35 GMT</pubDate>
      <guid>http://snippets.dzone.com/posts/show/5489</guid>
      <author>ki4ngel (Benoit Asselin)</author>
    </item>
    <item>
      <title>Regular Expressions with MySQL</title>
      <link>http://snippets.dzone.com/posts/show/5011</link>
      <description>&lt;code&gt;&lt;br /&gt;SELECT * FROM texts WHERE content REGEXP '[^a-z]Hello[^a-z]' ;&lt;br /&gt;&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;If you really want to force a REGEXP comparison to be case sensitive, use the BINARY keyword to make one of the strings a binary string.&lt;br /&gt;&lt;code&gt;&lt;br /&gt;SELECT * FROM texts WHERE content REGEXP BINARY '[^a-zA-Z]Hello[^a-zA-Z]' ;&lt;br /&gt;&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;Warning: some characters do not work. Example :&lt;br /&gt;&lt;code&gt;&lt;br /&gt;SELECT * FROM texts WHERE content REGEXP '[^\w]Hello[^\w]' ;&lt;br /&gt;&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.ab-d.fr/"&gt;ab-d.fr source code&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;</description>
      <pubDate>Sat, 19 Jan 2008 22:05:22 GMT</pubDate>
      <guid>http://snippets.dzone.com/posts/show/5011</guid>
      <author>ki4ngel (Benoit Asselin)</author>
    </item>
    <item>
      <title>Some problems with charset in UTF-8 ?</title>
      <link>http://snippets.dzone.com/posts/show/4814</link>
      <description>So you can use this request MySQL before all others, for fix your problems :&lt;br /&gt;&lt;code&gt;&lt;br /&gt;...&lt;br /&gt;mysql_query( "SET NAMES 'utf8' " );&lt;br /&gt;...&lt;br /&gt;&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.ab-d.fr/"&gt;Source: ab-d.fr&lt;br /&gt;Languages: PHP and MySQL&lt;/a&gt;</description>
      <pubDate>Fri, 23 Nov 2007 22:07:58 GMT</pubDate>
      <guid>http://snippets.dzone.com/posts/show/4814</guid>
      <author>ki4ngel (Benoit Asselin)</author>
    </item>
    <item>
      <title>Use get_magic_quotes_gpc();</title>
      <link>http://snippets.dzone.com/posts/show/4795</link>
      <description>&lt;code&gt;&lt;br /&gt;function f_magic_quotes($text) {&lt;br /&gt;	if ( !get_magic_quotes_gpc() ) {&lt;br /&gt;		return addslashes($text);&lt;br /&gt;	} else {&lt;br /&gt;		return $text;&lt;br /&gt;	}&lt;br /&gt;}&lt;br /&gt;&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;&lt;code&gt;&lt;br /&gt;function f_clean_quotes($text) {&lt;br /&gt;	if ( !get_magic_quotes_gpc() ) {&lt;br /&gt;		return $text;&lt;br /&gt;	} else {&lt;br /&gt;		return stripslashes($text);&lt;br /&gt;	}&lt;br /&gt;}&lt;br /&gt;&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.ab-d.fr/"&gt;Source: ab-d&lt;/a&gt;&lt;br /&gt;</description>
      <pubDate>Sun, 18 Nov 2007 20:57:07 GMT</pubDate>
      <guid>http://snippets.dzone.com/posts/show/4795</guid>
      <author>ki4ngel (Benoit Asselin)</author>
    </item>
  </channel>
</rss>
