Michdd Posted November 6, 2008 Share Posted November 6, 2008 I want something that will flush a certain field in my database every 24 hours. Is there a way to set MySql to do this like when making the field? Or would I have to use Php? Either way, can someone help me do this? Link to comment https://forums.phpfreaks.com/topic/131570-does-mysql-have-a-function-for-this-or-must-i-use-php/ Share on other sites More sharing options...
trq Posted November 6, 2008 Share Posted November 6, 2008 Neither PHP or MySql are going to be much help. You need to use your OS's scheduler. Linux uses cron, windows, something else. Link to comment https://forums.phpfreaks.com/topic/131570-does-mysql-have-a-function-for-this-or-must-i-use-php/#findComment-683363 Share on other sites More sharing options...
Michdd Posted November 6, 2008 Author Share Posted November 6, 2008 Neither PHP or MySql are going to be much help. You need to use your OS's scheduler. Linux uses cron, windows, something else. By using Cron you mean setting cron on a php script? Link to comment https://forums.phpfreaks.com/topic/131570-does-mysql-have-a-function-for-this-or-must-i-use-php/#findComment-683364 Share on other sites More sharing options...
Stooney Posted November 6, 2008 Share Posted November 6, 2008 Neither PHP or MySql are going to be much help. You need to use your OS's scheduler. Linux uses cron, windows, something else. By using Cron you mean setting cron on a php script? He meant either that or the low-calorie CRON-diet http://en.wikipedia.org/wiki/CRON-diet ya never know... Link to comment https://forums.phpfreaks.com/topic/131570-does-mysql-have-a-function-for-this-or-must-i-use-php/#findComment-683365 Share on other sites More sharing options...
trq Posted November 6, 2008 Share Posted November 6, 2008 Neither PHP or MySql are going to be much help. You need to use your OS's scheduler. Linux uses cron, windows, something else. By using Cron you mean setting cron on a php script? Cron can execute scripts, yes (wether they be php or whatever doesn't matter). It is the program in charge of executing commands at a given interval on Linux. Link to comment https://forums.phpfreaks.com/topic/131570-does-mysql-have-a-function-for-this-or-must-i-use-php/#findComment-683368 Share on other sites More sharing options...
Michdd Posted November 6, 2008 Author Share Posted November 6, 2008 Well, what would be the MySql for wiping 1 field for all rows in the table? Link to comment https://forums.phpfreaks.com/topic/131570-does-mysql-have-a-function-for-this-or-must-i-use-php/#findComment-683386 Share on other sites More sharing options...
trq Posted November 6, 2008 Share Posted November 6, 2008 UPDATE tbl SET fld = "" Link to comment https://forums.phpfreaks.com/topic/131570-does-mysql-have-a-function-for-this-or-must-i-use-php/#findComment-683389 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.