rootcho has asked for the wisdom of the Perl Monks concerning the following question:
Is there a way to do this directly in an update like this :$rs->field2($r->field2 + 1); $rs->update;
The above code doesn't work, I posted it just like an example. I hope also the second example to generate just one UPDATE, right ? Not sure for the first one, though !$rs->update({field1 => 55, field2 => 'field2+1' }); or $rs->update_or_create({field1 => 55, field2 => 'field2+1' });
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: DBIx update and simultaneosly modify field
by jasonk (Parson) on Jun 26, 2007 at 22:38 UTC | |
|
Re: DBIx update and simultaneosly modify field
by stonecolddevin (Parson) on Jun 26, 2007 at 21:47 UTC | |
|
Re: DBIx update and simultaneosly modify field
by snoopy (Curate) on Jun 26, 2007 at 23:49 UTC | |
by rootcho (Pilgrim) on Jun 27, 2007 at 18:22 UTC |