Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > PHP/MySQL > MySQL
Password Reminder
Register
| FAQ | Members List | Search | Today's Posts | Mark Forums Read
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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old March 28th, 2007, 04:35 PM
Authorized User
 
Join Date: Feb 2007
Location: , , .
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
Reply With Quote
  #2 (permalink)  
Old March 28th, 2007, 07:26 PM
Friend of Wrox
 
Join Date: Jul 2003
Location: South San Francisco, CA, USA.
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

Reply With Quote
  #3 (permalink)  
Old March 28th, 2007, 08:22 PM
Authorized User
 
Join Date: Feb 2007
Location: , , .
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
Reply With Quote
  #4 (permalink)  
Old March 29th, 2007, 04:02 PM
Friend of Wrox
 
Join Date: Jul 2003
Location: South San Francisco, CA, USA.
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
Reply With Quote
  #5 (permalink)  
Old April 1st, 2007, 07:32 PM
Authorized User
 
Join Date: Feb 2007
Location: , , .
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
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


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



All times are GMT -4. The time now is 09:06 AM.


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