 




<?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: INSTR ()</title>
	<atom:link href="http://itknowledgeexchange.techtarget.com/itanswers/instr/feed/" rel="self" type="application/rss+xml" />
	<link>http://itknowledgeexchange.techtarget.com/itanswers/instr/</link>
	<description></description>
	<lastBuildDate>Sun, 19 May 2013 03:14:28 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	
	<item>
		<title>By: inprise</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/instr/#comment-59231</link>
		<dc:creator>inprise</dc:creator>
		<pubDate>Fri, 16 Jan 2009 03:56:39 +0000</pubDate>
		<guid isPermaLink="false">#comment-59231</guid>
		<description><![CDATA[Hi Both,

Thanks a lot!!!
i changed the local variable to paramater variable(p_lm) itself and it s working now

IF INSTR (p_lm,pcd,1,1) = 1 OR INSTR(p_lm,pc,1,1) = 1 OR INSTR(p_lm,pcn,1,1) = 1 THEN]]></description>
		<content:encoded><![CDATA[<p>Hi Both,</p>
<p>Thanks a lot!!!<br />
i changed the local variable to paramater variable(p_lm) itself and it s working now</p>
<p>IF INSTR (p_lm,pcd,1,1) = 1 OR INSTR(p_lm,pc,1,1) = 1 OR INSTR(p_lm,pcn,1,1) = 1 THEN</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: carlosdl</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/instr/#comment-59207</link>
		<dc:creator>carlosdl</dc:creator>
		<pubDate>Thu, 15 Jan 2009 15:12:05 +0000</pubDate>
		<guid isPermaLink="false">#comment-59207</guid>
		<description><![CDATA[I think we won&#039;t be able to help without looking at the rest of your code.]]></description>
		<content:encoded><![CDATA[<p>I think we won&#8217;t be able to help without looking at the rest of your code.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: inprise</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/instr/#comment-59199</link>
		<dc:creator>inprise</dc:creator>
		<pubDate>Thu, 15 Jan 2009 07:16:09 +0000</pubDate>
		<guid isPermaLink="false">#comment-59199</guid>
		<description><![CDATA[Hi Both,

As said earlier my test case s working fine using both instr() and like operator howver not thrwoing error while exceuting thru my procedure 

yes it s in the range of error messages only,all error messages all different procedures are catched n err_pkg() only 

Is this cud be a oracle or sqldeveloper problem i am thinking now 

please guide me]]></description>
		<content:encoded><![CDATA[<p>Hi Both,</p>
<p>As said earlier my test case s working fine using both instr() and like operator howver not thrwoing error while exceuting thru my procedure </p>
<p>yes it s in the range of error messages only,all error messages all different procedures are catched n err_pkg() only </p>
<p>Is this cud be a oracle or sqldeveloper problem i am thinking now </p>
<p>please guide me</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: kccrosser</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/instr/#comment-59186</link>
		<dc:creator>kccrosser</dc:creator>
		<pubDate>Wed, 14 Jan 2009 19:23:53 +0000</pubDate>
		<guid isPermaLink="false">#comment-59186</guid>
		<description><![CDATA[Other possibilities - since we only see this fragment...

1.  Is there an error/exception handler that is capturing and discarding the error you are raising?  From where is this function called?

2.  What is the value in &quot;err_pkg.nt_val&quot;?  Depending on this value, this could cause odd behavior.  Oracle specifies that this value must be between -20000 and -20999.  If it is outside this range, you may not see the expected result.

3.  Note that &quot;sqlerrm&quot; is probably null at the point where you do a &quot;raise_application_error&quot;, unless this is occurring inside of another error handler.  Not sure why you are appending this value.]]></description>
		<content:encoded><![CDATA[<p>Other possibilities &#8211; since we only see this fragment&#8230;</p>
<p>1.  Is there an error/exception handler that is capturing and discarding the error you are raising?  From where is this function called?</p>
<p>2.  What is the value in &#8220;err_pkg.nt_val&#8221;?  Depending on this value, this could cause odd behavior.  Oracle specifies that this value must be between -20000 and -20999.  If it is outside this range, you may not see the expected result.</p>
<p>3.  Note that &#8220;sqlerrm&#8221; is probably null at the point where you do a &#8220;raise_application_error&#8221;, unless this is occurring inside of another error handler.  Not sure why you are appending this value.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: carlosdl</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/instr/#comment-59180</link>
		<dc:creator>carlosdl</dc:creator>
		<pubDate>Wed, 14 Jan 2009 16:31:57 +0000</pubDate>
		<guid isPermaLink="false">#comment-59180</guid>
		<description><![CDATA[Can you post your complete procedure here ?

As I said before, I don&#039;t se anything wrong in your code, and it should work.

You could also try doing the comparison this way:

&lt;pre&gt;if v_lm like pcd&#124;&#124;&#039;%&#039; or v_lm like pc&#124;&#124;&#039;%&#039; or v_lm like pcn&#124;&#124;&#039;%&#039; then ...&lt;/pre&gt;]]></description>
		<content:encoded><![CDATA[<p>Can you post your complete procedure here ?</p>
<p>As I said before, I don&#8217;t se anything wrong in your code, and it should work.</p>
<p>You could also try doing the comparison this way:</p>
<pre>if v_lm like pcd||'%' or v_lm like pc||'%' or v_lm like pcn||'%' then ...</pre>
]]></content:encoded>
	</item>
	<item>
		<title>By: inprise</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/instr/#comment-59174</link>
		<dc:creator>inprise</dc:creator>
		<pubDate>Wed, 14 Jan 2009 13:35:10 +0000</pubDate>
		<guid isPermaLink="false">#comment-59174</guid>
		<description><![CDATA[hi my procedure s functioning perfect excluding this logic]]></description>
		<content:encoded><![CDATA[<p>hi my procedure s functioning perfect excluding this logic</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: inprise</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/instr/#comment-59173</link>
		<dc:creator>inprise</dc:creator>
		<pubDate>Wed, 14 Jan 2009 13:32:15 +0000</pubDate>
		<guid isPermaLink="false">#comment-59173</guid>
		<description><![CDATA[Hi actually i neeed it to support case insenstive functionality only,is there any other means to do this???]]></description>
		<content:encoded><![CDATA[<p>Hi actually i neeed it to support case insenstive functionality only,is there any other means to do this???</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: carlosdl</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/instr/#comment-59140</link>
		<dc:creator>carlosdl</dc:creator>
		<pubDate>Tue, 13 Jan 2009 13:28:16 +0000</pubDate>
		<guid isPermaLink="false">#comment-59140</guid>
		<description><![CDATA[Hi Inprise.

There is no direct way to make INSTR work case-insensitive, but you could use the UPPER function to convert everything to upper text before comparison, for example:

&lt;pre&gt;If INSTR (UPPER(v_lm),UPPER(pcd),1,1) = 1 or ...&lt;/pre&gt;

I don&#039;t see anything wrong in your code (except that v_lm appears as vlm a couple of times).

Are you sure your procedure doesn&#039;t have some other code that is making this fail ?]]></description>
		<content:encoded><![CDATA[<p>Hi Inprise.</p>
<p>There is no direct way to make INSTR work case-insensitive, but you could use the UPPER function to convert everything to upper text before comparison, for example:</p>
<pre>If INSTR (UPPER(v_lm),UPPER(pcd),1,1) = 1 or ...</pre>
<p>I don&#8217;t see anything wrong in your code (except that v_lm appears as vlm a couple of times).</p>
<p>Are you sure your procedure doesn&#8217;t have some other code that is making this fail ?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: inprise</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/instr/#comment-59134</link>
		<dc:creator>inprise</dc:creator>
		<pubDate>Tue, 13 Jan 2009 06:03:24 +0000</pubDate>
		<guid isPermaLink="false">#comment-59134</guid>
		<description><![CDATA[Hi,

I have mentioned my code only above mistakenly mentioned as pseudo code

What u mean here the case sensitive ,where to set the value as case insenstive in INSTR() ,if that s the case also ,it should work in both test case and implementation procedure ,because i used the same example for both

scenario 1
v_lm = &#039;GREEN&#039; 

pcd = &#039;GR&#039;

it raised the error as i used DBMS_OUTPUT.PUT_LINE(&#039;Error&#039;) for this scenario

and

v_lm = &#039;GREEN&#039;
pcd = &#039;AN&#039;

and this was successful -- DBMS_OUTPUT.PUT_LINE(&#039;passed&#039;) for this scenario

Similar way tested other 2 parameter variable with v_lm -- it worked fine with test case  howver not with implementation procedure 

please guide me where i am wrong in this]]></description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>I have mentioned my code only above mistakenly mentioned as pseudo code</p>
<p>What u mean here the case sensitive ,where to set the value as case insenstive in INSTR() ,if that s the case also ,it should work in both test case and implementation procedure ,because i used the same example for both</p>
<p>scenario 1<br />
v_lm = &#8216;GREEN&#8217; </p>
<p>pcd = &#8216;GR&#8217;</p>
<p>it raised the error as i used DBMS_OUTPUT.PUT_LINE(&#8216;Error&#8217;) for this scenario</p>
<p>and</p>
<p>v_lm = &#8216;GREEN&#8217;<br />
pcd = &#8216;AN&#8217;</p>
<p>and this was successful &#8212; DBMS_OUTPUT.PUT_LINE(&#8216;passed&#8217;) for this scenario</p>
<p>Similar way tested other 2 parameter variable with v_lm &#8212; it worked fine with test case  howver not with implementation procedure </p>
<p>please guide me where i am wrong in this</p>
]]></content:encoded>
	</item>
</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Page Caching using memcached
Database Caching 3/8 queries in 0.038 seconds using memcached
Object Caching 381/382 objects using memcached

Served from: itknowledgeexchange.techtarget.com @ 2013-05-20 00:10:47 -->