<?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/"
		>
<channel>
	<title>Comments on: Trick #3 &#8211; Store Any Data with AnyData</title>
	<atom:link href="http://www.oraclealchemist.com/news/trick-3-store-any-data-with-anydata/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.oraclealchemist.com/news/trick-3-store-any-data-with-anydata/</link>
	<description>Steve Karam's Oracle Blog</description>
	<lastBuildDate>Thu, 29 Jul 2010 20:12:51 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Excellent</title>
		<link>http://www.oraclealchemist.com/news/trick-3-store-any-data-with-anydata/comment-page-1/#comment-36080</link>
		<dc:creator>Excellent</dc:creator>
		<pubDate>Fri, 18 Jan 2008 22:05:50 +0000</pubDate>
		<guid isPermaLink="false">http://www.oraclealchemist.com/news/trick-3-store-any-data-with-anydata/#comment-36080</guid>
		<description>Excellent example , Explained very well.

Thanks
Adarsh
AKTechnosoft Corp.</description>
		<content:encoded><![CDATA[<p>Excellent example , Explained very well.</p>
<p>Thanks<br />
Adarsh<br />
AKTechnosoft Corp.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Graeme</title>
		<link>http://www.oraclealchemist.com/news/trick-3-store-any-data-with-anydata/comment-page-1/#comment-9234</link>
		<dc:creator>Graeme</dc:creator>
		<pubDate>Fri, 10 Nov 2006 04:44:02 +0000</pubDate>
		<guid isPermaLink="false">http://www.oraclealchemist.com/news/trick-3-store-any-data-with-anydata/#comment-9234</guid>
		<description>Oh i think i just answered my own geestion. I just noticed that the return value for your function is : VARCHAR2, so some may work, but probably not the date one, unless we do something like

SELECT to_char(to_date(to_char(getTokens(TOKEN)),â€™dd-MON-YYâ€™) -1, â€™dd-MON-YYâ€™), â€™dd-MON-YYâ€™)
FROM SEARCH_WORDS WHERE TOKEN_ID=5;

Just a thought, why not overload the function somehow based on the return datatype....</description>
		<content:encoded><![CDATA[<p>Oh i think i just answered my own geestion. I just noticed that the return value for your function is : VARCHAR2, so some may work, but probably not the date one, unless we do something like</p>
<p>SELECT to_char(to_date(to_char(getTokens(TOKEN)),â€™dd-MON-YYâ€™) -1, â€™dd-MON-YYâ€™), â€™dd-MON-YYâ€™)<br />
FROM SEARCH_WORDS WHERE TOKEN_ID=5;</p>
<p>Just a thought, why not overload the function somehow based on the return datatype&#8230;.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Graeme</title>
		<link>http://www.oraclealchemist.com/news/trick-3-store-any-data-with-anydata/comment-page-1/#comment-9230</link>
		<dc:creator>Graeme</dc:creator>
		<pubDate>Fri, 10 Nov 2006 04:19:06 +0000</pubDate>
		<guid isPermaLink="false">http://www.oraclealchemist.com/news/trick-3-store-any-data-with-anydata/#comment-9230</guid>
		<description>Great examples, I&#039;m just trying to think of how to use it.

I know you said that you shouldn&#039;t/wouldbn&#039;t use a where clause to filter out the token column, but why can&#039;t you do something like  WHERE getTokens(TOKEN) = 50) and even have a function based index to help with the serach times?

Also can you do something like :

SELECT 2*getTokens(TOKEN) FROM SEARCH_WORDS WHERE TOKEN_ID=2;

and get 100 returned?

and from the same table :

SELECT SUBSTR(getTokens(TOKEN),1,2) &#124;&#124; &#039;de&#039; FROM SEARCH_WORDS WHERE TOKEN_ID=1;

and get  &quot;Made&quot; returned?

or 

SELECT to_char(getTokens(TOKEN)-1),&#039;dd-MON-YY&#039;)
FROM SEARCH_WORDS WHERE TOKEN_ID=5;

and get 31-NOV-06

NOTE: I assume this is a 10g functionality? I gon&#039;t have a 10g DB to test in yet, so sorry for the questions that i would have tested myself if i did.</description>
		<content:encoded><![CDATA[<p>Great examples, I&#8217;m just trying to think of how to use it.</p>
<p>I know you said that you shouldn&#8217;t/wouldbn&#8217;t use a where clause to filter out the token column, but why can&#8217;t you do something like  WHERE getTokens(TOKEN) = 50) and even have a function based index to help with the serach times?</p>
<p>Also can you do something like :</p>
<p>SELECT 2*getTokens(TOKEN) FROM SEARCH_WORDS WHERE TOKEN_ID=2;</p>
<p>and get 100 returned?</p>
<p>and from the same table :</p>
<p>SELECT SUBSTR(getTokens(TOKEN),1,2) || &#8216;de&#8217; FROM SEARCH_WORDS WHERE TOKEN_ID=1;</p>
<p>and get  &#8220;Made&#8221; returned?</p>
<p>or </p>
<p>SELECT to_char(getTokens(TOKEN)-1),&#8217;dd-MON-YY&#8217;)<br />
FROM SEARCH_WORDS WHERE TOKEN_ID=5;</p>
<p>and get 31-NOV-06</p>
<p>NOTE: I assume this is a 10g functionality? I gon&#8217;t have a 10g DB to test in yet, so sorry for the questions that i would have tested myself if i did.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
