towerboy
07-06-2007, 08:28 PM
Hi,
What I am trying to do is delete a field that does not have a digit in it. This is what I have so far:
$sql = "DELETE FROM table WHERE LENGTH(field1) > 9 AND (user_id) > 2";
How do I DELETE a row that does not have a digit in it? If I were to make up a query to explain the concept further, it would look like this:
$sql = "DELETE FROM table WHERE LENGTH(field1) > 9 AND (user_id) > 2 AND DOES NOT CONTAIN 0-9";
What I am trying to do is delete a field that does not have a digit in it. This is what I have so far:
$sql = "DELETE FROM table WHERE LENGTH(field1) > 9 AND (user_id) > 2";
How do I DELETE a row that does not have a digit in it? If I were to make up a query to explain the concept further, it would look like this:
$sql = "DELETE FROM table WHERE LENGTH(field1) > 9 AND (user_id) > 2 AND DOES NOT CONTAIN 0-9";