First of all, if you have 300 tables (one for each product), you cannot write one query that will set the product URLs to NULL.
You need to write a query for each table ( UPDATE table_name SET product_url = NULL , as others have already said).
And if you have 10,000 products one day, you will have 10,000 tables if you continue. This will become a maintenance nightmare, as you can now see what problems you have with 300 tables.
Your database is denormalized. If your products have the same attributes, they should be in the same table with the name "Products", and each product should be presented as one row. Only then can you do what you want with one request.
darioo
source share