<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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:media="http://search.yahoo.com/mrss/"
		>
<channel>
	<title>Comments on: SQL Function Spotlight: TRIM</title>
	<atom:link href="http://awads.net/wp/2008/08/28/sql-function-spotlight-trim/feed/" rel="self" type="application/rss+xml" />
	<link>http://awads.net/wp/2008/08/28/sql-function-spotlight-trim/</link>
	<description>News, views, tips and tricks on Oracle and other fun stuff</description>
	<lastBuildDate>Fri, 26 Feb 2010 18:04:50 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Eddie Awad</title>
		<link>http://awads.net/wp/2008/08/28/sql-function-spotlight-trim/comment-page-1/#comment-52371</link>
		<dc:creator>Eddie Awad</dc:creator>
		<pubDate>Mon, 08 Sep 2008 00:42:35 +0000</pubDate>
		<guid isPermaLink="false">http://awads.net/wp/?p=748#comment-52371</guid>
		<description>&lt;p&gt;Thanks Brian. By the way, nice use of the &lt;a href=&quot;http://awads.net/wp/2006/01/12/cool-sql-function-dump/&quot; rel=&quot;nofollow&quot;&gt;DUMP function&lt;/a&gt;.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Thanks Brian. By the way, nice use of the <a href="http://awads.net/wp/2006/01/12/cool-sql-function-dump/" rel="nofollow">DUMP function</a>.</p>]]></content:encoded>
	</item>
	<item>
		<title>By: Brian Tkatch</title>
		<link>http://awads.net/wp/2008/08/28/sql-function-spotlight-trim/comment-page-1/#comment-52369</link>
		<dc:creator>Brian Tkatch</dc:creator>
		<pubDate>Fri, 05 Sep 2008 11:52:59 +0000</pubDate>
		<guid isPermaLink="false">http://awads.net/wp/?p=748#comment-52369</guid>
		<description>&lt;p&gt;So, TRIM and TO_CHAR seem the same by a DATE:&lt;/p&gt;

&lt;p&gt;SELECT TRIM(SysDate),    DUMP(TRIM(SysDate))    FROM Dual UNION ALL
SELECT TO_CHAR(SysDate), DUMP(TO_CHAR(SysDate)) FROM Dual;&lt;/p&gt;

&lt;p&gt;05-SEP-08 Typ=1 Len=9: 48,53,45,83,69,80,45,48,56
05-SEP-08 Typ=1 Len=9: 48,53,45,83,69,80,45,48,56&lt;/p&gt;

&lt;p&gt;TRUNC, however, leaves it as a DATE, which is possible the best way to remove the time.&lt;/p&gt;

&lt;p&gt;SELECT SysDate,     DUMP(SysDate)       FROM Dual UNION ALL
SELECT TRUNC(SysDate),  DUMP(TRUNC(SysDate))    FROM Dual;&lt;/p&gt;

&lt;p&gt;05-SEP-08 Typ=13 Len=8: 216,7,9,5,8,51,44,0
05-SEP-08 Typ=13 Len=8: 216,7,9,5,0,0,0,0&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>So, TRIM and TO_CHAR seem the same by a DATE:</p>

<p>SELECT TRIM(SysDate),    DUMP(TRIM(SysDate))    FROM Dual UNION ALL
SELECT TO_CHAR(SysDate), DUMP(TO_CHAR(SysDate)) FROM Dual;</p>

<p>05-SEP-08 Typ=1 Len=9: 48,53,45,83,69,80,45,48,56
05-SEP-08 Typ=1 Len=9: 48,53,45,83,69,80,45,48,56</p>

<p>TRUNC, however, leaves it as a DATE, which is possible the best way to remove the time.</p>

<p>SELECT SysDate,     DUMP(SysDate)       FROM Dual UNION ALL
SELECT TRUNC(SysDate),  DUMP(TRUNC(SysDate))    FROM Dual;</p>

<p>05-SEP-08 Typ=13 Len=8: 216,7,9,5,8,51,44,0
05-SEP-08 Typ=13 Len=8: 216,7,9,5,0,0,0,0</p>]]></content:encoded>
	</item>
	<item>
		<title>By: Eddie Awad</title>
		<link>http://awads.net/wp/2008/08/28/sql-function-spotlight-trim/comment-page-1/#comment-52367</link>
		<dc:creator>Eddie Awad</dc:creator>
		<pubDate>Thu, 04 Sep 2008 23:27:35 +0000</pubDate>
		<guid isPermaLink="false">http://awads.net/wp/?p=748#comment-52367</guid>
		<description>&lt;p&gt;Hmm! What is the difference between trim(sysdate) and to_char(sysdate)?&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Hmm! What is the difference between trim(sysdate) and to_char(sysdate)?</p>]]></content:encoded>
	</item>
	<item>
		<title>By: Mathias Magnusson</title>
		<link>http://awads.net/wp/2008/08/28/sql-function-spotlight-trim/comment-page-1/#comment-52363</link>
		<dc:creator>Mathias Magnusson</dc:creator>
		<pubDate>Thu, 04 Sep 2008 19:25:27 +0000</pubDate>
		<guid isPermaLink="false">http://awads.net/wp/?p=748#comment-52363</guid>
		<description>&lt;p&gt;I like using trim on dates. I have seen many elaborate ways of converting to char to remove it and then convert back to date. Using trim seems to be the slick way to just remove the time (making it zero).&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>I like using trim on dates. I have seen many elaborate ways of converting to char to remove it and then convert back to date. Using trim seems to be the slick way to just remove the time (making it zero).</p>]]></content:encoded>
	</item>
	<item>
		<title>By: Eddie Awad</title>
		<link>http://awads.net/wp/2008/08/28/sql-function-spotlight-trim/comment-page-1/#comment-52343</link>
		<dc:creator>Eddie Awad</dc:creator>
		<pubDate>Fri, 29 Aug 2008 16:27:01 +0000</pubDate>
		<guid isPermaLink="false">http://awads.net/wp/?p=748#comment-52343</guid>
		<description>&lt;p&gt;Indeed, if you want to trim more than one character on either or both ends of a string, TRIM is not the function to use.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Indeed, if you want to trim more than one character on either or both ends of a string, TRIM is not the function to use.</p>]]></content:encoded>
	</item>
	<item>
		<title>By: Laurent Schneider</title>
		<link>http://awads.net/wp/2008/08/28/sql-function-spotlight-trim/comment-page-1/#comment-52342</link>
		<dc:creator>Laurent Schneider</dc:creator>
		<pubDate>Fri, 29 Aug 2008 05:35:50 +0000</pubDate>
		<guid isPermaLink="false">http://awads.net/wp/?p=748#comment-52342</guid>
		<description>&lt;p&gt;there is one major advantage of using ltrim (rtrim), with ltrim you can skip any character from a range, with trim the character is a single character  !&lt;/p&gt;

&lt;pre&gt;
SQL&gt; select ltrim(&#039;elcaroracle&#039;,&#039;racle&#039;) from dual

LTRIM(
------
oracle
&lt;/pre&gt;
</description>
		<content:encoded><![CDATA[<p>there is one major advantage of using ltrim (rtrim), with ltrim you can skip any character from a range, with trim the character is a single character  !</p>

<pre>
SQL&gt; select ltrim('elcaroracle','racle') from dual

LTRIM(
------
oracle
</pre>]]></content:encoded>
	</item>
</channel>
</rss>
