I’d like to know how to do an autoupdate to any table.
For example table is_approved it’s always set to 0 and I would like to do it 1.
I’d like to know how to do an autoupdate to any table. For example
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
If you want every record to be updated just execute an update query without a where statement in it. If you mean you want it to be automatically triggert at some point in time you must look into cronjobs or something like that.
To do each record do:
UPDATEmytableSETis_approved=1