coldbohemia
Programmer
I HAVE A SCRIPT THAT (TRIES) TO DELETE ALL RECORDS
IN A MYSQL TABLE THAT DO NOT CONTAIN AT LEAST
ONE LETTER OF THE ALPHABET
THE FIELD IN QUESTION (GENERIC_ROW) IS A CHAR() TYPE AND THE DATABASE ENGINE IS INNODB TYPE
THE FILE IS NOT INDEXED.
HERE IS THE OFFENDING COMMAND:
$query="delete from temptables.rfile_temp
where trim(temptables.rfile_temp.generic_row)
not (REGEXP '[:alpha:]+' )";
$result=mysql_query($query) ;
I'VE BROWSED A LOT OF WEB SITES TRYING TO GET SOME CLUE
AS TO WHAT I'M MISSING, BUT NO LUCK.
I HAVE ALSO READ AND RE-READ THE MYSQL MANUAL CONCERNING REGEX, SO IT'S NOT FOR WANT OF TRYING.
THANKS ALL
IN A MYSQL TABLE THAT DO NOT CONTAIN AT LEAST
ONE LETTER OF THE ALPHABET
THE FIELD IN QUESTION (GENERIC_ROW) IS A CHAR() TYPE AND THE DATABASE ENGINE IS INNODB TYPE
THE FILE IS NOT INDEXED.
HERE IS THE OFFENDING COMMAND:
$query="delete from temptables.rfile_temp
where trim(temptables.rfile_temp.generic_row)
not (REGEXP '[:alpha:]+' )";
$result=mysql_query($query) ;
I'VE BROWSED A LOT OF WEB SITES TRYING TO GET SOME CLUE
AS TO WHAT I'M MISSING, BUT NO LUCK.
I HAVE ALSO READ AND RE-READ THE MYSQL MANUAL CONCERNING REGEX, SO IT'S NOT FOR WANT OF TRYING.
THANKS ALL