Welcome Guest, Not a member yet? Register   Sign In
how to
#1

[eluser]rafi_ccj[/eluser]
how can i update my table values by incrementing with the previous value using active record? i mean newValue=previousValue+newValue...is it possible?

update table set area = area+20 where id=2;

How can I do this with active record?


Messages In This Thread
how to - by El Forum - 01-27-2012, 11:20 PM
how to - by El Forum - 01-28-2012, 01:30 AM
how to - by El Forum - 01-28-2012, 05:39 AM



Theme © iAndrew 2016 - Forum software by © MyBB