Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如何每天减少 MySQL 字段?
如:
field1= 30 和 24 小时后 -> field1=29 直到 0。
您可能最好将当前日期放在数据库中,然后使用DATEDIFF获取此后的日期。您甚至可以执行 30 - DATEDIFF,然后按照您想要的方式获得数字。
您可以执行一个 Unix cron 作业(这里有一些信息),它将每天执行您的 PHP 脚本。
I'm having the hardest time figuring this thing out. The error is in line 58 of main.cpp, I wrote a noticeable comment on line 58.
|58|error: expected primary-expression before ';' token <
|58|error: expected primary-expression before ';' token