Questions about the MySQL, PostgreSQL, and most other databases, as well as using it with PHP can be asked here.
Moderator: General Moderators
-
thamizhchelvan
- Forum Newbie
- Posts: 23
- Joined: Tue May 08, 2007 2:50 am
Post
by thamizhchelvan »
Hi,
Can we execute mysql queries from MSDOS batch files?
-
feyd
- Neighborhood Spidermoddy
- Posts: 31559
- Joined: Mon Mar 29, 2004 3:24 pm
- Location: Bothell, Washington, USA
Post
by feyd »
Yes. The question is, why?
-
thamizhchelvan
- Forum Newbie
- Posts: 23
- Joined: Tue May 08, 2007 2:50 am
Post
by thamizhchelvan »
feyd wrote:Yes. The question is, why?
I want to execute a set of queries by a single click,thats why. Can u give me a code sample for this?
-
Benjamin
- Site Administrator
- Posts: 6935
- Joined: Sun May 19, 2002 10:24 pm
Post
by Benjamin »
Code: Select all
if (isset($_GET['do']) && $_GET['do'] == 'run_queries')
{
// run queries here
}
-
JayBird
- Admin
- Posts: 4524
- Joined: Wed Aug 13, 2003 7:02 am
- Location: York, UK
-
Contact:
Post
by JayBird »
@astions: what has that got to do with this thread?