![]() |
|
Welcome to the Computer Webmaster Gaming Console Graphics Forum forums. You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today! If you have any problems with the registration process or your account login, please contact contact us. |
| |||||||
| Database Database problems or need to ask a question? maybe something to do with sql injections or a database software question. Database topics cover MySQL, PostgreSQL, Oracle, SQL Server or anything else related to databases. |
![]() |
| | LinkBack | Thread Tools | Display Modes |
| | #1 | ||
| Is there a tool that I can download for free that will "prune" a database? Specifically what I have is a database that has player stats from a game server. I'd like the ability to automatically remove any player records that haven't been updated in a specific time period (delete players that haven't played on the server in a specific time frame). Does such a tool exist?. | |||
|
| Advertisements |
| | #2 | ||
| Andy in NJ wrote: > Is there a tool that I can download for free that will "prune" a database? > Specifically what I have is a database that has player stats from a game > server. I'd like the ability to automatically remove any player records that > haven't been updated in a specific time period (delete players that haven't > played on the server in a specific time frame). > > Does such a tool exist?. You can easily do that with a SQL script and a cron job. | |||
|
| | #3 | ||
| "Benoit St-Jean" <bstjean@adelphia.net> wrote in message news:BuGdnTlaauYUqSnfRVn-vw@adelphia.com... > You can easily do that with a SQL script and a cron job. Would you care to elaborate on this? I am only a little familiar with MySQL, having figured out most of it on my own. | |||
|
| | #4 | ||
| Anyone else got any input? "Andy in NJ" <ADMIN at FLOTSERVER DOT NET> wrote in message news:_KCdnZeCUdGJHi7fRVn-iQ@comcast.com... > Is there a tool that I can download for free that will "prune" a database? > Specifically what I have is a database that has player stats from a game > server. I'd like the ability to automatically remove any player records > that haven't been updated in a specific time period (delete players that > haven't played on the server in a specific time frame). > > Does such a tool exist?. > | |||
|
| | #5 | ||
| *bump* "Andy in NJ" <ADMIN at FLOTSERVER DOT NET> wrote in message news:_KCdnZeCUdGJHi7fRVn-iQ@comcast.com... > Is there a tool that I can download for free that will "prune" a database? > Specifically what I have is a database that has player stats from a game > server. I'd like the ability to automatically remove any player records > that haven't been updated in a specific time period (delete players that > haven't played on the server in a specific time frame). > > Does such a tool exist?. > | |||
|
| | #6 | ||
| Andy in NJ wrote: > > Would you care to elaborate on this? I am only a little familiar with MySQL, > having figured out most of it on my own. > You can have a field that is of type TIMESTAMP and have the default value be "ON UPDATE CURRENT_TIMESTAMP". You can then use a UNIX cron job to execute an SQL script that would SELECT and subsequently DELETE rows that fit the critera that you specify. There are a million other solutions, too. This one works on MySQL 4.1 and above, but I do not think anything prior to it. However, you can also write time to a field when you create the row with your script and then use the SQL script to search and delete for that. - Mike | |||
|
| Featured Websites | ||||
|
![]() |
| Tags: database, quotpruningquot, tool |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| For Sony, that performance "is simply abysmal" -- "PS3 is sucking wind right now" | AirRaid Mach 2.5 | Computer Consoles | 33 | 05-30-2007 2:16 PM |
| For Sony, that performance "is simply abysmal" - "PS3 is sucking wind right now" | elrous0@pop.uky.edu | Console Subjects | 1 | 05-29-2007 3:24 PM |
| some shortcut keys not working anymore-----help"""""""" | Kadaitcha Man | Windows | 1 | 05-28-2007 10:28 PM |
| Index "documents" in a database? | Ian Boyd | MSN questions | 1 | 05-28-2007 12:44 AM |
| Featured Websites | ||||
|