You are here: Re: PHP MySQL « PHP Programming Language « IT news, forums, messages
Re: PHP MySQL

Posted by mmckeon@gmail.com on 11/14/06 14:23

Can you use temporary tables to store your data that is going to
expire? If so these tables are good for the life of the connection and
may be useful for what you are doing with your records that expire. You
can even create one that is just like one of your "real" table:

create temporary table IF NOT EXISTS tmpMyTableCopy LIKE tblMyTable

Jerry Stuckle wrote:
> merianosnikos@gmail.com wrote:
> > Is a very good idea but i think that somebody or something must fire
> > this event . . . Is it posible to be start by it self ? ? ?
> >
> > For example i like to meka a table like this :
> >
> > $col_a | col_b | col_. . . | col_n | col_expire_date
> >
> > When the expire date is the current date delete the record.
> >
> > Thanks a lot . . . :D
> >
>
> Just set up a cron job to run once a day and deletes anything with an
> expiration date of today or before.
>
> It's one of the things cron jobs are designed for!
>
> --
> ==================
> Remove the "x" from my email address
> Jerry Stuckle
> JDS Computer Training Corp.
> jstucklex@attglobal.net
> ==================

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация