<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Well, at least we got the duck. &#187; diacritic</title>
	<atom:link href="http://ingol.nl/blog/tag/diacritic/feed/" rel="self" type="application/rss+xml" />
	<link>http://ingol.nl/blog</link>
	<description></description>
	<lastBuildDate>Wed, 08 Sep 2010 12:49:07 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Oracle Tip: Ignoring case and diacritic differences in an Oracle search.</title>
		<link>http://ingol.nl/blog/2010/02/01/oracle-tip-ignoring-case-and-diacritic-differences-in-an-oracle-search/</link>
		<comments>http://ingol.nl/blog/2010/02/01/oracle-tip-ignoring-case-and-diacritic-differences-in-an-oracle-search/#comments</comments>
		<pubDate>Mon, 01 Feb 2010 14:56:26 +0000</pubDate>
		<dc:creator>Reboot</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[diacritic]]></category>
		<category><![CDATA[oracle]]></category>
		<category><![CDATA[pl/sql]]></category>

		<guid isPermaLink="false">http://ingol.nl/blog/?p=348</guid>
		<description><![CDATA[http://forums.oracle.com/forums/thread.jspa?threadID=14970
Instead of using the SQL UPPER and LOWER functions to perform case-insensitive queries, an alternative approach is to utilize the linguistic sort GENERIC_BASELETTER. GENERIC_BASELETTER groups all characters together based on their base letter values, this is achieved by ignoring their case and the diacritic differences.
Here is an example of a GENERIC_BASELETTER query.

ALTER SESSION SET NLS_COMP=ANSI;
ALTER [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://forums.oracle.com/forums/thread.jspa?threadID=14970">http://forums.oracle.com/forums/thread.jspa?threadID=14970</a></p>
<blockquote><p>Instead of using the SQL UPPER and LOWER functions to perform case-insensitive queries, an alternative approach is to utilize the linguistic sort GENERIC_BASELETTER. GENERIC_BASELETTER groups all characters together based on their base letter values, this is achieved by ignoring their case and the diacritic differences.<br />
Here is an example of a GENERIC_BASELETTER query.</p></blockquote>
<pre class="brush: plain;">
ALTER SESSION SET NLS_COMP=ANSI;
ALTER SESSION SET NLS_SORT=GENERIC_BASELETTER;

SELECT * FROM PRODUCT
WHERE PRODUCT_NAME = database;
</pre>
<blockquote><p>All other operators, such as LIKE, perform comparisons in binary mode only. i.e. they do not honor the NLS_SORT value. This has now been be enhanced in 10gR2.</p></blockquote>
<p>See also:<br />
Diacritics in like clause, Globalization support<br />
<a href="http://dbaforums.org/oracle/index.php?showtopic=915">http://dbaforums.org/oracle/index.php?showtopic=915</a></p>
<p>Diacritics<br />
<a href="http://en.wikipedia.org/wiki/Diacritic">http://en.wikipedia.org/wiki/Diacritic</a></p>
<p>Oracle® Database Globalization Support Guide<br />
<a href="http://download.oracle.com/docs/cd/B14117_01/server.101/b10749/ch5lingsort.htm#i1006463">http://download.oracle.com/docs/cd/B14117_01/server.101/b10749/ch5lingsort.htm#i1006463</a></p>
<p>Oracle NLS_LOWER<br />
<a href="http://download.oracle.com/docs/cd/B19306_01/server.102/b14200/functions098.htm#i78373">http://download.oracle.com/docs/cd/B19306_01/server.102/b14200/functions098.htm#i78373</a></p>
<p>Oracle Replace<br />
<a href="http://www.psoug.org/reference/translate_replace.html">http://www.psoug.org/reference/translate_replace.html</a></p>
<pre class="brush: plain;">
SELECT translate('árvíztűrőtükörfúrógép','áéíóöőúüű','aeiooouuu') without FROM dual
</pre>
]]></content:encoded>
			<wfw:commentRss>http://ingol.nl/blog/2010/02/01/oracle-tip-ignoring-case-and-diacritic-differences-in-an-oracle-search/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
