List:General Discussion« Previous MessageNext Message »
From:Paul DuBois Date:May 31 2001 6:04pm
Subject:RE: Insert Automatically
View as plain text  
At 12:55 PM -0500 5/31/01, Johnny Withers wrote:
>make your file with valid sql in it..
>
>then run:
>mysql -u user -p password --database database < file.sql

Except don't put a space between -p and your password. :-)

>
>---------------------
>Johnny Withers
>johnny@stripped
>p. 601.853.0211
>c. 601.209.4985
>
>
>-----Original Message-----
>From: KAMRY [mailto:kamry1888@stripped]
>Sent: Thursday, May 31, 2001 1:07 PM
>To: mysql@stripped
>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


-- 
Paul DuBois, paul@stripped
Thread
RE: Insert AutomaticallyKAMRY31 May
  • RE: Insert AutomaticallyJohnny Withers31 May
    • RE: Insert AutomaticallyPaul DuBois31 May
  • RE: Insert Automaticallyjaab31 May
  • RE: Insert AutomaticallyVVM Ravikumar Sarma Chengalvala31 May