 




<?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: updating char</title>
	<atom:link href="http://itknowledgeexchange.techtarget.com/itanswers/updating-char/feed/" rel="self" type="application/rss+xml" />
	<link>http://itknowledgeexchange.techtarget.com/itanswers/updating-char/</link>
	<description></description>
	<lastBuildDate>Fri, 24 May 2013 02:38:15 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	
	<item>
		<title>By: carlosdl</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/updating-char/#comment-72239</link>
		<dc:creator>carlosdl</dc:creator>
		<pubDate>Wed, 06 Jan 2010 00:50:50 +0000</pubDate>
		<guid isPermaLink="false">#comment-72239</guid>
		<description><![CDATA[Yes, you get 48, because 48 is the code for the &#039;0&#039; character.

Could you please explain why you need to use 

SELECT &lt;b&gt;ASCII&lt;/b&gt;(REVOKFLG)

instead of simply:

SELECT REVOKFLG

to get 0 as result ?

There is no printable character for the ascii code 0.  This code represents the null character, so I can&#039;t think of a way to get 0 when asking for the ascii code of REVOKFLG.

You can use a number stored in a char column as a number (and not as a character) without any problems (and w/o the need of the ASCII function), or you could use a column of type NUMBER(1) if you feel more comfortable with it.

I&#039;m sure there is something that needs clarification here.  Please provide as much deatils as possible about your requirement.]]></description>
		<content:encoded><![CDATA[<p>Yes, you get 48, because 48 is the code for the &#8217;0&#8242; character.</p>
<p>Could you please explain why you need to use </p>
<p>SELECT <b>ASCII</b>(REVOKFLG)</p>
<p>instead of simply:</p>
<p>SELECT REVOKFLG</p>
<p>to get 0 as result ?</p>
<p>There is no printable character for the ascii code 0.  This code represents the null character, so I can&#8217;t think of a way to get 0 when asking for the ascii code of REVOKFLG.</p>
<p>You can use a number stored in a char column as a number (and not as a character) without any problems (and w/o the need of the ASCII function), or you could use a column of type NUMBER(1) if you feel more comfortable with it.</p>
<p>I&#8217;m sure there is something that needs clarification here.  Please provide as much deatils as possible about your requirement.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: gunzforlife</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/updating-char/#comment-72237</link>
		<dc:creator>gunzforlife</dc:creator>
		<pubDate>Tue, 05 Jan 2010 22:53:45 +0000</pubDate>
		<guid isPermaLink="false">#comment-72237</guid>
		<description><![CDATA[I had tried that earlier which actually made me ask questions about this. 
Unfortunately when I checked again by querying ( SELECT ascii(REVOKFLG) from OPERATOR where login like &#039;ospprov&#039;;) , REVOKFLG is (48) and not (0).

For this I want to  know if there is something I am missing?]]></description>
		<content:encoded><![CDATA[<p>I had tried that earlier which actually made me ask questions about this.<br />
Unfortunately when I checked again by querying ( SELECT ascii(REVOKFLG) from OPERATOR where login like &#8216;ospprov&#8217;;) , REVOKFLG is (48) and not (0).</p>
<p>For this I want to  know if there is something I am missing?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: carlosdl</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/updating-char/#comment-72235</link>
		<dc:creator>carlosdl</dc:creator>
		<pubDate>Tue, 05 Jan 2010 21:15:49 +0000</pubDate>
		<guid isPermaLink="false">#comment-72235</guid>
		<description><![CDATA[&lt;pre&gt;UPDATE operator 
SET REVOKFLG=&#039;0&#039; 
WHERE login like ‘ospprov’;&lt;/pre&gt;

Am I missing something ?]]></description>
		<content:encoded><![CDATA[<pre>UPDATE operator 
SET REVOKFLG='0' 
WHERE login like ‘ospprov’;</pre>
<p>Am I missing something ?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: gunzforlife</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/updating-char/#comment-72232</link>
		<dc:creator>gunzforlife</dc:creator>
		<pubDate>Tue, 05 Jan 2010 20:48:40 +0000</pubDate>
		<guid isPermaLink="false">#comment-72232</guid>
		<description><![CDATA[Oracle 10g
OPERATOR is the Object
REVOKFLG is a field that&#039;s of CHAR type. either 0 or 1.
I am trying to update the REVOKFLG which is displayed in ascii as &#039;0&#039; (flag uncheck).

SQL&gt; update operator set REVOKFLG=char(0) where login like &#039;ospprov&#039;;
update operator set REVOKFLG=char(0) where login like &#039;ospprov&#039;
                                                             *
ERROR at line 1:
ORA-00936: missing expression

Please how can I update this?]]></description>
		<content:encoded><![CDATA[<p>Oracle 10g<br />
OPERATOR is the Object<br />
REVOKFLG is a field that&#8217;s of CHAR type. either 0 or 1.<br />
I am trying to update the REVOKFLG which is displayed in ascii as &#8217;0&#8242; (flag uncheck).</p>
<p>SQL&gt; update operator set REVOKFLG=char(0) where login like &#8216;ospprov&#8217;;<br />
update operator set REVOKFLG=char(0) where login like &#8216;ospprov&#8217;<br />
                                                             *<br />
ERROR at line 1:<br />
ORA-00936: missing expression</p>
<p>Please how can I update this?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: mrdenny</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/updating-char/#comment-72226</link>
		<dc:creator>mrdenny</dc:creator>
		<pubDate>Tue, 05 Jan 2010 19:55:29 +0000</pubDate>
		<guid isPermaLink="false">#comment-72226</guid>
		<description><![CDATA[What database platform are you using?]]></description>
		<content:encoded><![CDATA[<p>What database platform are you using?</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/10 queries in 0.039 seconds using memcached
Object Caching 323/329 objects using memcached

Served from: itknowledgeexchange.techtarget.com @ 2013-05-24 02:53:49 -->