Reply to Re: Comments in SQL?

Your name:

Reply:


Posted by Chris Hope on 11/10/06 02:00

sTony wrote:

[snip]

> I had a thought, which can be dangerous, haha. Is is possible to
> store each table definition in it's own file, and then simply have one
> file that references all of the others? Like includes in other
> languages? If this is possible, it would have many advantages for me
> and my website. Anyone?
>
> Thanks in advance,

If you're using mysql and have command line access to the server where
the database is stored, you can always do this:

mysql -u[username] -p[password] [databasename] < *.sql

and it will pass all the .sql files in the current directory to the
mysql server and execute each one in turn. I'm sure there is a similar
method using postgres and other database servers.

--
Chris Hope | www.electrictoolbox.com | www.linuxcdmall.com

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация