> -----Original Message-----
> From: Rhino [mailto:rhino1@stripped]
> Sent: Monday, January 16, 2006 09:10
> To: mysql
> Subject: Nested scripts in MySQL?
>
> Is it possible to run nested scripts in MySQL?
>
I tried this with success. Create a file that contains lines like this:
\. today.sql
\. status.sql
\. active.sql
Save this file. Execute this file from the client. I did not try nesting
more than this example (1-level), but suppose it would work for more.
Note that the '\.' equates to the 'source' command.
Dirk Bremer - Senior Systems Engineer - ESS/AMS - NISC Lake St. Louis MO
- USA Central Time Zone
636-755-2652 fax 636-755-2503
dirk.bremer@stripped
www.nisc.coop