I am working with an old MySQL table that serves as a sort log. He looks like
CREATE TABLE `queries` (
`Email` char(32) NOT NULL DEFAULT '',
`Query` blob,
`NumRecords` int(5) unsigned DEFAULT NULL,
`Date` date DEFAULT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
Now I need to be able to UPDATEwrite to this table (don't ask why, I don't know). I usually just did
UPDATE table SET ... WHERE unique_column = value
But in this case, I do not have a unique column to work with.
Is there a workaround for this, or do I just need to click to add a good standard INT NOT NULL AUTO_INCREMENT?
source
share