Thx! bug what if it's not insert, it could be update, or stored procedure call? the sql will be passed via external file.
BR,ivan On Apr 9, 3:07 pm, Michael Lang <[email protected]> wrote: > DB[:test].insert(:x => 3, :y => 4) > > or > > values = {:x => 3, :y => 4} > > DB[:test].insert(values) > > Cheers, > > Michael > > > > On Fri, Apr 9, 2010 at 5:42 AM, ivanb <[email protected]> wrote: > > how to do something like this > > > DB.run ("insert into test (x,y) values(?,?)",3,4) > > > or > > > a=[] > > a<<3 > > a<<4 > > DB.run ("insert into test (x,y) values(?,?)",a) > > > or > > > a={} > > a["x"]=3 > > a[:y]=4 > > > DB.run ("insert into test (x,y) values(:x,:y)",a) > > > br,ivan > > > -- > > 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://codeconnoisseur.org -- 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.
