List:MySQL on Win32« Previous MessageNext Message »
From:Paul DuBois Date:July 23 1999 6:36pm
Subject:Re: Running scripts to create tables
View as plain text  
At 2:12 PM -0400 7/23/99, Dennis "Thrys¯e" wrote:
>Hi,
>
>Can the client library (libmysql.dll) do this in any
>way?
>
>-qabi
>
>--- Paul DuBois <paul@stripped> suggested:
>>
>> C:\> mysql < your_file
>>
>> Make sure each statement is terminated by a
>> semicolon.

Sure, but you'd need to read the file yourself to get the query
strings, and you'd either need to make some simplifying assumptions
about where queries end (say, require one query per line or something)
or else be prepared to parse the statements to figure out where one
ends and the other begins.  The latter option's not so appealing.

-- 
Paul DuBois, paul@stripped
Thread
Running scripts to create tablesJean-Francois Prieur23 Jul
  • Re: Running scripts to create tablesPaul DuBois23 Jul
Re: Running scripts to create tablesqabi_23 Jul
  • Re: Running scripts to create tablesPaul DuBois23 Jul