![]() |
|
|||||||
![]() |
|
|
Thread Tools | Display Modes |
|
#1
IP: 204.45.15.210
|
|||
|
|||
|
I have an ecommerce store that I am currently working on and there are approx 300 products which have a field named "product_id" at www.prescription-glasses.com database.
These fields contains an old product_id that I need to delete altogether. How can I create a query that will replace all "product_id" fields with data in them with a null value? Last edited by topvip : 2015-12-19 at 10:54 PM |
|
#2
IP: 204.45.15.210
|
|||
|
|||
|
This will set every product_id to NULL which is currently not null.
Code:
UPDATE table_name SET product_id= NULL WHERE product_id is not null; |
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Display product extra field data on Invoice | Hahira | X-Cart | 0 | 2015-12-02 06:47 PM |
| Magento: How to delete/remove all products from all categories | Random Lake | Magento | 0 | 2015-04-24 04:37 AM |
| mysql 帮助文档使用 | Haddam | MySQL | 0 | 2014-11-26 06:43 PM |
| PayPal 出错处理 | Queen | 电子商务 | 2 | 2014-11-15 11:03 AM |