I do believe I learn something new nearly every time you respond to
somebody's question, Jeremy.

Happy Friday,

Michael

On Fri, Apr 9, 2010 at 10:56 AM, Jeremy Evans <[email protected]>wrote:

> On Apr 9, 2:42 am, ivanb <[email protected]> wrote:
> > DB.run ("insert into test (x,y) values(?,?)",3,4)
>
> DB["insert into test (x,y) values(?,?)",3,4].insert
>
> > DB.run ("insert into test (x,y) values(?,?)",a)
>
> a = [1, 2]
> DB["insert into test (x,y) values(?,?)", *a].insert
>
> > DB.run ("insert into test (x,y) values(:x,:y)",a)
>
> a = {:x=>1, :y=>2}
> DB["insert into test (x,y) values(:x,:y)", a].insert
>
> Jeremy
>
> --
> You received this message because you are subscribed to the Google Groups
> "sequel-talk" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected]<sequel-talk%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/sequel-talk?hl=en.
>
>


-- 
http://ramblings.gibberishcode.net

-- 
You received this message because you are subscribed to the Google Groups 
"sequel-talk" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/sequel-talk?hl=en.

Reply via email to