Re: ruby mysql module frage - mehrere INSERT auf einmal

Wild Karl-Heinz <[email protected]>
Newsgroups gmane.comp.lang.ruby.german
Organization Wicom.Li
Message-ID <[email protected]>
Hallo Markus Jais,

In message "[ruby-de] ruby mysql module frage - mehrere INSERT auf einmal"
   on 21.08.2002, Markus Jais <[email protected]> writes:

MJ> aber via ruby gibt es folgenden fehler:
MJ> ./create.rb:23:in `query': You have an error in your SQL syntax near ';INSERT 
MJ> INTO words VALUES('Haus', 'house', 'maison', 'casa', 'casa')' at line 1 
MJ> (MysqlError)
MJ>         from ./create.rb:23

MJ> ich schätze mal, das hängt irgendwie mit dem ";" zusammen.

sieht so aus :-)

MJ> gibt es eine möglichkeit, das man mehrere INSERT auf einmal aufruft.

gibt's was wie prepare in mysql-ruby?

in einer schleife ein query?

oder der extended syntax von mysql
insert into table values(..)(..)(..)(..)
musst du aber detailierter nachlesen oder einen mysqldump mit extended
insert ausfuehren als beispiel.

lt. docu nicht in ruby-mysql falls ich's nicht zufaellig ueberleseben
haben sollte.

-- 
Mit freundlichen Gruessen,
Wild Karl-Heinz
kh.wild at wicom.li
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.