QUOTE(amit nigam @ May 2 2006, 03:24 AM)

Actually i know how to create an independent database and how to update it manually.
But i just want to know that how can i make that update thing automatically. Like suppose if i give somekind of username and password to members of my site and i wish to have them updated , like addition , deletion or changes in password, to be automatic how can i do that.
i have a rough idea that it can be done with the help of Java and jdbc but i don't know exactly. I m good at programming languages C and Java.
I dont know exactly if i got your question right.. It is kind of not very clear..
for automation, here is what i do..
--
this is on assumption that you have a host with mySQL 5 in it or that you can upgrade the mySQL server on the site/host.
I create all needed database tables and coloumns then I write a stored procedure to be inserted to the mySQL server [Oracle style]. Then when I need to do some updates, I just call the stored procedure, the function of the stored procedure is base on your likings.
My best setup is also to set a trigger command in the mySQL like a trigger of database read. On a read command [SELECT command for the database], i will just call a stored procedure found also inside the database that will update the read count column for the database I am using.
eg.
table data
id INT
data varchar
readcount int
trigger SELECT
stored procedure sub updatecount[.....]
{....}
when a user use SELECT command here to the
data , my read triiger will fire off
then the trigger will call this stored procedure updatecount and the readcount will be updated.
Reply