make your file with valid sql in it..

then run:
mysql -u user -p password --database database < file.sql

---------------------
Johnny Withers
[EMAIL PROTECTED]
p. 601.853.0211
c. 601.209.4985


-----Original Message-----
From: KAMRY [mailto:[EMAIL PROTECTED]]
Sent: Thursday, May 31, 2001 1:07 PM
To: [EMAIL PROTECTED]
Subject: RE: Insert Automatically




database,sql,query



Hi guys, I appreciate it if some can help here....

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?

Thanks,

Kal


_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com
 _________________________________________________________ Do You Yahoo!? Get your 
free @yahoo.com address at http://mail.yahoo.com
---------------------------------------------------------------------
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



---------------------------------------------------------------------
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