Re: ruby mysql module frage - mehrere INSERT auf einmal

Markus Jais <[email protected]>
Newsgroups gmane.comp.lang.ruby.german
Message-ID <[email protected]>
On Wednesday 21 August 2002 14:11, Philipp Meier wrote:
> On Wed, Aug 21, 2002 at 01:21:10AM +0200, Markus Jais wrote:
> > dabei bin ich auf ein problem gestoßen:
> > ich möchte mehrere datensätze auf einmal einfügen wie folgt:
> >
> > sql = "INSERT INTO words VALUES('Adler', 'eagle', 'aigle', 'aquila',
> > 'aquila');"
> > sql += "INSERT INTO words VALUES('Haus', 'house', 'maison', 'casa',
> > 'casa')" puts sql
> > m.query(sql)
>
> Du kannst IMHO immer nur ein statement innerhalb eines "query" ausführen.
> Was hindert Dich daran, mehrere Querys nacheinander abzusetzten?

danke für alle hinweise.
darin hindert mich gar nichts, ich wollte nur wissen ob es geht!

markus


>
> -billy.

-- 
Markus Jais
http://www.mjais.de
[email protected]
The road goes ever on and on - Bilbo Baggins
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.