I have this update query in my DTS package to null out blank values:
-----
update catalog_import
set vendor_sku = null
where vendor_sku < '!'
update catalog_import
set vendor_desc_text = null
where vendor_desc_text < '!'
update catalog_import
set uom = null
where uom < '!'
update catalog_import
set product_type = null
where product_type < '!'
update catalog_import
set product_url = null
where product_url < '!'
update catalog_import
set stock_status = null
where stock_status < '!'
-----
As you can see, all the updates are for one table. Is there a better way to express these multiple updates into a single update statement?
TIA for any help.
- Glen
Know thy data.
-----
update catalog_import
set vendor_sku = null
where vendor_sku < '!'
update catalog_import
set vendor_desc_text = null
where vendor_desc_text < '!'
update catalog_import
set uom = null
where uom < '!'
update catalog_import
set product_type = null
where product_type < '!'
update catalog_import
set product_url = null
where product_url < '!'
update catalog_import
set stock_status = null
where stock_status < '!'
-----
As you can see, all the updates are for one table. Is there a better way to express these multiple updates into a single update statement?
TIA for any help.
- Glen
Know thy data.