Benjamin Pflugmann wrote:
> 
> Hi.
> 
> On Fri, Nov 09, 2001 at 08:21:34AM -0500, [EMAIL PROTECTED] wrote:
> > Years ago I worked on an RDBMS that had a feature to allow execution of
> > 'sections' of a command file, avoiding others.  I am still ign scanning the
> > docs, but have not found anything similar in MySQL.
> >
> >   For example, in a database creation table one could enter (in MySQL format)
> > the following:
> >
> >   mysql>  source master_DB_creation(table_a, table_c, consistency_check);
> >
> > Where the file master_DB_creation file would contain:
> > -------------------------------------------
> > ?section table_a
> > drop table if exists table_a;
> > create table table_a
> [...]
> > Does anyone know whether this functionality exists in MySQL?

If your 'source ...' is UNIX's source/exec/eval, yes you can write a
script to execute any sections/parts of your databases. In MySQL, you
run it as ...
mysql -h host -u user -ppasswd < your_script


> 
> It doesn't exist.
> 
> Bye,
> 
>         Benjamin.
> 
> --
> [EMAIL PROTECTED]
> 
> ---------------------------------------------------------------------
> 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