Dear Kal,

On Thu, 31 May 2001, KAMRY wrote:
> database,sql,query
>
> Is it possible to do a script file like in Oracle with statements like
> these:
>
> insert into countries (id,country,country2) values(IDDI, "Venezuela", "");
> insert into countries (id,country,country2) values(IDDI, "Vietnam", "");
> insert into countries (id,country,country2) values(IDDI, "Western Sahara,
> "");
> insert into countries (id,country,country2) values(IDDI, "Yemen", "");
> insert into countries (id,country,country2) values(IDDI, "Yugoslavia", "");
> insert into countries (id,country,country2) values(IDDI, "Zambia", "");
>
>
> All what I found an understood from Load Data is that I have to follow some
> kind of syntax/delimiters/etc... Yet the question is that can I load a data
> file containing the above statements, and how?

Just put all your statements in a file foo.sql and do a

mysql <foo.sql [options]

Hope this helps,
Jan

--
Mr. Jan-Aage Bruvoll             IT Project Manager
20 Min Holding, Thurgauerstrasse 40, CH-8050 Zurich
Office/fax: +44 2072408283   Mobile: +44 7740291600


---------------------------------------------------------------------
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/           (the list archive)

To request this thread, e-mail <[EMAIL PROTECTED]>
To unsubscribe, e-mail <[EMAIL PROTECTED]>
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php

Reply via email to