Wrox Programmer Forums
Go Back   Wrox Programmer Forums > PHP/MySQL > MySQL
|
MySQL General discussion about the MySQL database.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the MySQL section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old March 28th, 2007, 04:35 PM
Authorized User
 
Join Date: Feb 2007
Posts: 23
Thanks: 0
Thanked 0 Times in 0 Posts
Default Routines in MYSQL

Greetings,

    Hello all! Could somebody advise me on whether MYSQL can start routine jobs or tasks on its own? Like housekeeping or daily assigned routines and how?



Best regards


Newbie
 
Old March 28th, 2007, 07:26 PM
Friend of Wrox
 
Join Date: Jul 2003
Posts: 128
Thanks: 0
Thanked 1 Time in 1 Post
Default

js_newbie,
I am not sure about your question, but you might be referring to Stored Routines which is a new feature on MySQL version 5.0.
I is an umbrella term for the combination of stored procedures and stored functions. This allows you to save a set sequence of code in the MySQL server then call that sequence as needed.
It is a like batch file or a storage of sql programs in your server.
hope this helps,
jm

 
Old March 28th, 2007, 08:22 PM
Authorized User
 
Join Date: Feb 2007
Posts: 23
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thanks jmaronilla,

     Thanks again for your hints and I would like to know more on this!

i) Will stored procedure be able to make database fields checking automatically and whether the task will be submitted itself like daily batch job?

ii) How can I enable this if my version is (3.xx.xx). I think it will be hard to upgrade my current version as those relating header and binary files have been bundled with other applications together. I cannot predict the results if I upgrade the MYSQL version.

Could you suggest me some ways on this? Many thanks



Best regards


Newbie
 
Old March 29th, 2007, 04:02 PM
Friend of Wrox
 
Join Date: Jul 2003
Posts: 128
Thanks: 0
Thanked 1 Time in 1 Post
Default

js_newbie,
my answer your questions are as follows:
i) when we talk about stored procedures which is on your mdbs (Management DataBase System software - is the database program like
mysql/mssql/oracle/sybase etc.. in you computer) server when you run
it or call it (execute) it will do the job. when you want to check first the data being entered before inserting the field value in your database i suggest 2 ways (especially in a web environment):
1) use javascript to validate values entered on the client side.
2) use php/asp/jsp/vbscript to validate on the server side.
using one of the two lessen your load to your database program.

ii) i don't how it will work for you, but trying will add to your job knowlege, and if you do back up first your current system in place and try restoring it so when ever your beta version of system
crashes you will know what to do.
good luck,
jm
 
Old April 1st, 2007, 07:32 PM
Authorized User
 
Join Date: Feb 2007
Posts: 23
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thanks Jm,

    Thanks very much for your replies. I'll try it on my machine.



Best regards


Newbie





Similar Threads
Thread Thread Starter Forum Replies Last Post
MySQL 5.0 dparsons MySQL 0 May 11th, 2006 08:32 AM
mysql help benzspida MySQL 1 April 6th, 2006 04:31 AM
mySQL Chudz BOOK: Beginning PHP, Apache, MySQL Web Development ISBN: 978-0-7645-5744-6 17 November 23rd, 2005 10:05 AM
interval timed calls to asp routines NickOg Javascript How-To 6 November 5th, 2004 03:55 AM
MySQL joanncae BOOK: Beginning PHP4/PHP 5 ISBN: 978-0-7645-4364-7; v5 ISBN: 978-0-7645-5783-5 1 March 3rd, 2004 08:30 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.