我的查询
SELECT order_id, order_item_id, product_id, date_due, ship_via
FROM order_shipment
WHERE (product_id LIKE 'PP80403396-502%%' AND ship_via != '');
或者
SELECT order_id, order_item_id, product_id, date_due, ship_via
FROM order_shipment
WHERE (product_id LIKE 'PP80403396-502%%' AND trim(ship_via) != '');
没有给我任何结果。
我的期望是显示 ship_via 字段为 NULL 或不为空的结果。