I have a table column that holds a hashed token generated when people use the 'forgotten password' link on a login system (it is generated when they enter their email to be sent a link). This token is then used as a url parameter included in the email link that is sent to them.
I am going to set a time limit on this link so that it expires every two hours, and the fields in this column will be deleted with a cron job.
How do I delete all of the fields in a column, but WITHOUT deleting the column itself?
There is plenty of info on how to delete a MYSQL table column e.g. ALTER TABLE mytable DROP COLUMN mycolumn
but I can't seem to find any info on how to remove all of the column fields, but keep the column itself (which will be populated with NULL fields unless they have requested a password reset link)?