Apr 02
Marc Pinnell ds->update using SQL?
Apr 02, 2016; 09:12
Marc Pinnell
ds->update using SQL?
Trying to replicate a statement like this using DS:
UPDATE table SET field = field + 1 WHERE id = $number
Is there a way to do that?
site_ds->update(::teams)
->set(
::twins = ::twins + 1,
::tgf = ::tgf + $hscore,
::tga = ::tga + $ascore
)
->where(::team_key = postparam('hometeam'))
->do
Throws an error on the "twins" line.
Marc Pinnell
#############################################################
This message is sent to you because you are subscribed to
the mailing list Lasso Lasso@lists.lassosoft.com
Official list archives available at http://www.lassotalk.com
To unsubscribe, E-mail to: <Lasso-unsubscribe@lists.lassosoft.com>
Send administrative queries to <Lasso-request@lists.lassosoft.com>
Apr 02
Jolle Carlestam Re: ds->update using SQL?
Apr 02, 2016; 19:05
Jolle Carlestam
Re: ds->update using SQL?
Apr 02
Marc Pinnell Re: ds->update using SQL?
Apr 02, 2016; 10:09
Marc Pinnell
Re: ds->update using SQL?
Apr 02
Jolle Carlestam Re: ds->update using SQL?
Apr 02, 2016; 19:36
Jolle Carlestam
Re: ds->update using SQL?
Apr 02
Marc Pinnell Re: ds->update using SQL?
Apr 02, 2016; 10:39
Marc Pinnell
Re: ds->update using SQL?
Apr 02
Ke Carlton Re: ds->update using SQL?
Apr 02, 2016; 20:36
Ke Carlton
Re: ds->update using SQL?
Apr 02
Marc Pinnell Re: ds->update using SQL?
Apr 02, 2016; 13:49
Marc Pinnell
Re: ds->update using SQL?