Chaps
I have a table with MAC Addresses in, loads in fact.
I need to clear the table completely, but not the columns, just the data in the columns. I can't write 'NULL' to the table as it's protected from that and I don't really want to change it.
Instead, I've used a wildcard query to remove MAC addresses.
Let's say, I have MACs that start with 9C, EC and 08.
will remove any MAC address entry that starts with 9C - fine![Smile :) :)](/styles/default/xenforo/vbSmilies/Normal/smile.gif)
But, how do I make the query so that I can easily say, delete from table where macaddress like 9C, EC, 08, etc, etc, etc?
Thanks
I have a table with MAC Addresses in, loads in fact.
I need to clear the table completely, but not the columns, just the data in the columns. I can't write 'NULL' to the table as it's protected from that and I don't really want to change it.
Instead, I've used a wildcard query to remove MAC addresses.
Let's say, I have MACs that start with 9C, EC and 08.
Code:
delete from table where macaddress like '9C:%'
will remove any MAC address entry that starts with 9C - fine
![Smile :) :)](/styles/default/xenforo/vbSmilies/Normal/smile.gif)
But, how do I make the query so that I can easily say, delete from table where macaddress like 9C, EC, 08, etc, etc, etc?
Thanks