Home > Database > Mysql Tutorial > body text

mysql-Mysql写过程函数问题,求帮助

WBOY
Release: 2016-06-06 09:37:14
Original
931 people have browsed it

mysqlsql数据库

求写一个sql函数,控制一张表的status字段

当现实时间大于表中datatime字段中的时间则 修改status字段值为1

大概就是在创建一个活动时,数据库自己 按小时 执行函数,直到当满足条件时修改status字段值为1。

求思路或者大概写法,

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!