<style> p {margin-top:0px;margin-bottom:0px;} </style>
<table border=0 width=100% bgcolor='' cellpadding=0 cellspacing=0 align=center>
        <tr>
        <td valign=top style='padding:8pt;'><font size=2 face='±¼¸²'>
<P><BR>
Thanks, but it seems like 'WHERE' clause is not applicable.</P>
<P>Maybe, I can rewrite a new method mimicking '__set'.<BR>
</P>
<BLOCKQUOTE style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">---------[ ¹ÞÀº ¸ÞÀÏ ³»¿ë ]----------<BR>
<B>Á¦¸ñ : </B>Re: [RE][jifty-devel] UPDATE in SQL<BR>
<B>³¯Â¥ : </B>Mon, 4 Dec 2006 22:44:58 -0500<BR>
<B>º¸³½ÀÌ : </B>Jesse Vincent &lt;jesse@bestpractical.com&gt;<BR>
<B>¹Þ´ÂÀÌ : </B>Nifty apps in a Jiffy &lt;jifty-devel@lists.jifty.org&gt;<BR>
<BR>
<BR>
<BR>
<BR>
On Tue, Dec 05, 2006 at 12:40:24PM +0900, In-Suk Joung wrote: <BR>
&gt; I answer to my question. I did this way. If anybody knows a fancier way, <BR>
&gt; please let me know. <BR>
<BR>
<BR>
Hi! Sorry for the delay in my reply. I've been working a bit too hard of <BR>
late ;) <BR>
<BR>
It should be as easy as <BR>
<BR>
$object-&gt;__set( column =&gt; 'column_name', <BR>
value =&gt; 'column_name +1' <BR>
is_sql_function =&gt; 1); <BR>
<BR>
Best, <BR>
<BR>
Jesse <BR>
<BR>
<BR>
&gt; <BR>
&gt; my $db_handle = $self-&gt;_handle; <BR>
&gt; my $table = $self-&gt;table; <BR>
&gt; $db_handle-&gt;simple_query( <BR>
&gt; "UPDATE $table SET column_name = column_name + 1" <BR>
&gt; ." WHERE column_name &gt;= ?", <BR>
&gt; $certain_number, <BR>
&gt; <BR>
&gt; ); <BR>
&gt; <BR>
&gt; <BR>
&gt; <BR>
&gt; ---------[ ^1THA-o ,THAI ^3&gt;&gt;?e ]---------- <BR>
&gt; A|,n : [jifty-devel] UPDATE in SQL <BR>
&gt; ^3-AYEN : Mon, 04 Dec 2006 14:01:01 +0900 (KST) <BR>
&gt; -o,^3 1/2AI : "In-Suk Joung" <JMARCH@HANMAIL.NET><BR>
&gt; ^1TH'AAI : <JIFTY-DEVEL@LISTS.JIFTY.ORG><BR>
&gt; <BR>
&gt; Could anybody show me a quick example how to replace the SQL below in <BR>
&gt; Jifty? <BR>
&gt; <BR>
&gt; UPDATE table_name SET column_name = column_name + 1 WHERE column_name &gt;= <BR>
&gt; $certain_number <BR>
&gt; <BR>
&gt; I guess probably I need to use some methods in Jifty::DBI::Handle. But I <BR>
&gt; have no clue, yet. <BR>
&gt; <BR>
&gt; ----------- <BR>
&gt; InSuk Joung <BR>
&gt; ----------- <BR>
&gt; <BR>
&gt; [IMG] <BR>
&gt; "?`i,(R) AIAAI^3Y, Daum" http://www.daum.net !-oAEo&gt;&gt;y 3/4^2'A ^1&lt;&lt;.a <BR>
&gt; C,N,THAI^3Y!&gt;&gt; <BR>
&gt; [IMG] <BR>
&gt; [IMG] <BR>
&gt; <BR>
&gt; ----------- <BR>
&gt; InSuk Joung <BR>
&gt; ----------- <BR>
&gt; <BR>
&gt; [IMG] <BR>
&gt; "?`i,(R) AIAAI^3Y, Daum" http://www.daum.net !-oAEo&gt;&gt;y 3/4^2'A ^1&lt;&lt;.a <BR>
&gt; C,N,THAI^3Y!&gt;&gt; <BR>
&gt; [IMG] <BR>
&gt; [IMG] <BR>
<BR>
&gt; _______________________________________________ <BR>
&gt; jifty-devel mailing list <BR>
&gt; jifty-devel@lists.jifty.org <BR>
&gt; http://lists.jifty.org/cgi-bin/mailman/listinfo/jifty-devel <BR>
<BR>
<BR>
-- <BR>
_______________________________________________ <BR>
jifty-devel mailing list <BR>
jifty-devel@lists.jifty.org <BR>
http://lists.jifty.org/cgi-bin/mailman/listinfo/jifty-devel <BR>
<BR>
</BLOCKQUOTE></font></td></tr>
</table>


<!-- __Hanmail-sig-Start__ -->

                        <br><br><br><font color=#000000 style='font-size: 9pt;'>-----------
<br>InSuk Joung
<br>-----------</font>  <br><br><a href="mailto:jmarch@hanmail.net"><img src="http://nametag.hanmail.net/2F5haTe4IitbGJFWMrkpew00" border="0"></a>
<!-- __Hanmail-sig-End__ -->

 

<!-- __Hanmail-tail-Start__ -->
<!-- ¸ÞÀϠǪÅÍ ½ÃÀÛ -->
<div id="mailFooter" style="background:url('http://mailimg.hanmail.net/05mail/img_dotline.gif') repeat-x 0 0;margin-top:20px;">
<div id="mfTop" style="line-height:28px;padding-top:4px;" class="d_12_333333">
 &quot;¿ì¸® ÀÎÅͳÝ, Daum&quot; <a href="http://www.daum.net" target="_top" class="d_12_333333">http://www.daum.net</a>  
¡ºÆò»ý¾²´Â ¹«·á ÇѸÞÀϳݡ»<br />
</div>
  
<div id="mfLeft" style="border:1px #dfdfdf solid;float:left;margin:0 12px 10px 0;">
<a href="http://allim.daum.net/servlet/Redirect?sid=footer060925_daumdirect" target="_new">
<img src="http://hmm.daum.net/image/daumdirect_hanmailfoot.gif" width="350" height="48" border="0">
</a>
</div>

<div id="mfRight" style="border:1px #dfdfdf solid;float:left;">
<a href="http://allim.daum.net/servlet/Redirect?sid=footer_lucky1204" target="new">
<img src="http://mailimg.hanmail.net/event/061129_hm3/footbn_061129.gif" width="350" height="48" border="0">
</a>
</div>
<div style="clear:both;"></div>
</div>
<!-- ¸ÞÀϠǪÅÍ ³¡ -->


<!-- __Hanmail-tail-End__ -->


<img src="http://wwl361.hanmail.net:4280/@from=jmarch&rcpt=jifty%2Ddevel%40lists%2Ejifty%2Eorg&msgid=%3C20061205131858%2EHM%2Ez000000000JBJBf%40jmarch%2Ewwl361%2Ehanmail%2Enet%3E">