I will "self" generate a table with 300k rows/rand some_id.
$num will be set at 300000
this works fine
but I am concerned about possible duplicate
(never know) rand is cap, lower case and numbers and is 6 char long.
my problem:
I cannot figure the syntax to add by the end of my msq
ON DUPLICATE KEY REMOVE some_id ... WHERE ...what? since it is all rand based.
for ($i=0;$i<=$num; $i++)
{
$some_id=rand();
$some_id-> msq =( "
INSERT INTO aaaa
(some_id, zzz)
VALUES
('$some_id', 'zzz')
");
$result = $some_id->msq();
FYI
the zzz value is always 0 until any "some_id" is used then it becomes 1