Re: [fpc-pascal] MySQL insert, load data

2008-02-15 Thread Michael Van Canneyt
On Fri, 15 Feb 2008, wrote: > Try this: > > q.SQL.Clear; > q.Add('LOAD DATA INFILE ''data.txt'' INTO TABLE database.my_table;'); > q.Execute; // <-- I don't remember the correct command right now > Normally it is: Q.ExecSQL; Michael. ___ fpc-pa

Re: [fpc-pascal] MySQL insert, load data

2008-02-15 Thread Leonardo M. Ram�
Try this: q.SQL.Clear; q.Add('LOAD DATA INFILE ''data.txt'' INTO TABLE database.my_table;'); q.Execute; // <-- I don't remember the correct command right now Leonardo --- Wolfram Kläger <[EMAIL PROTECTED]> wrote: > Ok. First one was simple. Keyword and opening bracket must be separated > by a

Re: [fpc-pascal] MySQL insert, load data

2008-02-15 Thread Wolfram Kläger
Ok. First one was simple. Keyword and opening bracket must be separated by a blank, e.g. '.. MYTABLE(..' // wrong '.. MYTABLE (..' // great '..)values(..' // wrong '..) values (..' // great All field contents have to be bracketed by double apostrophes, e.g. q.sql.add('''Florian Klaempfl'',')